TMtxExpression.DefineCustomValue Method

Overload List

#SignatureDescription
1function DefineCustomValue(const AVarName: string): TCustomValue;Define type and initialize to nil.
2function DefineCustomValue(const AVarName: string; const obj: TObject): TCustomValue;Define new custom object variable.

Overload 1: function DefineCustomValue(const AVarName: string): TCustomValue;

Define type and initialize to nil.

#NameTypeDescription
1AVarNamestring

Returns: TCustomValue

Overload 2: function DefineCustomValue(const AVarName: string; const obj: TObject): TCustomValue;

Define new custom object variable.

#NameTypeDescription
1AVarNamestring
2objTObject

Returns: TCustomValue

Remarks:

The function receiving this variable needs to check for correct type of object and report an error if not as expected.