GetValueOption Procedure
Formats a value as an Option or Enum value ordinal.
Signature
GetValueOption(var FldRef: FieldRef; TextValue: Text; AsXML: Boolean) : BigInteger
Parameters
var FldRef
FieldRef
The FieldRef that has this option as datatype.
TextValue
Text
The value in text format.
AsXML
Boolean
true
if the value should be treated as an XML value, where integer values and option/enum names are supported.
false
to also support the translated caption of the option/enum value.
Returns
BigInteger
The option/enum value ordinal, as a BigInteger.
Remarks
This function parses the provided TextValue in the following order, where the first match will be returned:
- Caption - The translated text of the option/enum value, that is shown in the UI. This will be omitted if AsXML is
true
. - Ordinal - The Integer value of the option/enum value.
- Name - The text name of the option/enum value.
This documentation is generated from Smart Toolbox v27.0