Constructor()

Namespace ›› System ›› MfStringSplitOptions ›› Methods ››
Parent Previous Next

Constructor()

OutputVar := new MfStringSplitOptions()
OutputVar := new MfStringSplitOptions(num)
OutputVar := new MfStringSplitOptions(instanceEnum)
OutputVar := new MfStringSplitOptions(enumItem*)

Constructor()

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

Constructor(num)

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

Parameters

num

An integer value representing an Enumeration Value of MfStringSplitOptions.

Example

MyEnum := new MfStringSplitOptions(4) ; RemoveEmptyEntries

Constructor(instanceEnum)

Creates a new instance of MfStringSplitOptions class an set the intial value to the value of instanceEnum.

Parameters

instanceEnum

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

Example

MyEnum := new MfStringSplitOptions() ; create instance with default value
MyEnum.Value := MfStringSplitOptions.Instance.RemoveEmptyEntries.Value
MfE := new MfStringSplitOptions(MyEnum) ; create a new instance and sets it value to the value of MyEnum

Constructor(enumItem*)

Creates a new instance of MfStringSplitOptions and set its value enumItem value(s).

Parameters

enumItem

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

Example

MyEnum := new MfStringSplitOptions(MfStringSplitOptions.Instance.RemoveEmptyEntries
           , MfStringSplitOptions.Instance.TrimEnd)
Msgbox % MyEnum.Value ; displays 9

Throws

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