Calling convention: CommaTextToVarArray("Text": String, AVarType:VarType):Variant[]
Description: Parses Delphi comma text and creates a one-dimensional Variant array with the requested element type. Quoted comma-text fields are handled by TStringList.CommaText.
Parameters:
Text: comma-separated text.
AVarType: numeric Variant type code, normally returned by CIP_StrToVarType.
Returns: Variant[]: zero-based typed array containing the parsed fields. NULL arguments raise an exception.
Availability: Default.
Example:
Items := CommaTextToVarArray("This,is,text", CIP_StrToVarType("string"));