OutputVar := new MfEqualsOptions()
OutputVar := new MfEqualsOptions(num)
OutputVar := new MfEqualsOptions(instanceEnum)
OutputVar := new MfEqualsOptions(enumItem)
Creates a new instance of MfEqualsOptions class and set initial value to the value of None.
Creates a new instance of MfEqualsOptions class and sets initial value to value of num.
num
An integer value representing an Enumeration Value of MfEqualsOptions.
MyEnum := new MfEqualsOptions(1) ; CompareNumber
Creates a new instance of MfEqualsOptions class an set the initial value to the value of instanceEnum.
instanceEnum
an instance of MfEqualsOptions whose Value is used to construct this instance.
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
Creates a new instance of MfEqualsOptions and set its value enumItem value
enumItem
MfEnum.EnumItem value(s) must Enumeration(s) of MfEqualsOptions
MyEnum := new MfEqualsOptions(MfEqualsOptions.Instance.AllowHexSpecifier
, MfEqualsOptions.Instance.AllowExponent
, MfEqualsOptions.Instance.Float)
Msgbox % MyEnum.Value ; displays 679
Throws MfNotSupportedException if this sealed class is extended or inherited.
Throws MfArgumentException if arguments are not correct.