TMtxExpression.DefineCustomValue Method

Overload List

#SignatureDescription
1TCustomValue DefineCustomValue(String AVarName)Define type and initialize to nil.
2TCustomValue DefineCustomValue(String AVarName, Object obj)Define new custom object variable.

Overload 1: TCustomValue DefineCustomValue(String AVarName)

Define type and initialize to nil.

#NameTypeDescription
1AVarNameString

Returns: TCustomValue

Overload 2: TCustomValue DefineCustomValue(String AVarName, Object obj)

Define new custom object variable.

#NameTypeDescription
1AVarNameString
2objObject

Returns: TCustomValue

Remarks:

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