Constructor()

Namespace ›› System ›› MfEqualsOptions ›› Methods ››
Parent Previous Next

Constructor()

OutputVar := new MfEqualsOptions()
OutputVar := new MfEqualsOptions(num)
OutputVar := new MfEqualsOptions(instanceEnum)
OutputVar := new MfEqualsOptions(enumItem)

Constructor()

Creates a new instance of MfEqualsOptions class and set initial value to the value of None.

Constructor(num)

Creates a new instance of MfEqualsOptions class and sets initial value to value of num.

Parameters

num

An integer value representing an Enumeration Value of MfEqualsOptions.

Example

MyEnum := new MfEqualsOptions(1) ; CompareNumber

Constructor(instanceEnum)

Creates a new instance of MfEqualsOptions class an set the initial value to the value of instanceEnum.

Parameters

instanceEnum

an instance of MfEqualsOptions whose Value is used to construct this instance.

Example

MyEnum := new MfEqualsOptions() ; create instance with default value
MyEnum.Value := MfEqualsOptions.Instance.None.Value ; MyEnum.Value is now 0
MyEnum.AddFlag(MfEqualsOptions.Instance.CompareNumber)           ; MyEnum.Value is now 1
MfE := new MfEqualsOptions(MyEnum) ; create a new instance and sets it value to the value of MyEnum
Msgbox % MFE.Value ; displays 1

Constructor(enumItem)

Creates a new instance of MfEqualsOptions and set its value enumItem value

Parameters

enumItem

MfEnum.EnumItem value(s) must Enumeration(s) of MfEqualsOptions

Example

MyEnum := new MfEqualsOptions(MfEqualsOptions.Instance.AllowHexSpecifier
           , MfEqualsOptions.Instance.AllowExponent
           , MfEqualsOptions.Instance.Float)
Msgbox % MyEnum.Value ; displays 679

Throws

Throws MfNotSupportedException if this sealed class is extended or inherited.
Throws MfArgumentException if arguments are not correct.