The Mpl Option Object

The MplOption object is an element of the MplOptions collection and contains all the information stored about each option for the MPL.

Properties for the MplOption Object

DefaultValue

The default value for the MPL option. (Variant Property - Read Only)

MaxValue

The maximum value of the MPL option. (Variant Property - Read Only)

MinValue

The minimum value of the MPL option. (Variant Property - Read Only)

Name

The name of the MPL option. (String Property - Read Only)

Value

The current value of the MPL option. (Variant Property - Read/Write)

Changed

Specifies if the option has been changed. (Boolean Property - Read Only)

Type

The type of the option. (Enumerated Property - Read Only). Possible values are:

CSharp Example:


    OptiMax MPL;

    MPL = new OptiMax();

    MPL.ReadProjectFile("c:\\mplwin4\\mplwin.mpj");

    MPL.Options["MaxVarLen"].Value = 15;

    foreach (MplOption mplOpt in MPL.Options)
        Console.WriteLine("MPLOPT: " + mplOpt.Name + ": val=" + mplOpt.Value);

        

Back To Top | Maximal Home Page | Table of Contents | Previous Page | Next Page