Description: Flattens a one- or two-dimensional Variant array into comma-separated text, optionally surrounding every element with a pair of bracket characters.
Calling convention: VarArrayToCommaText(VarArray: Variant[], [Brackets : string = ']): String
Parameters:
VarArray: one- or two-dimensional Variant array.
Brackets: optional two-character string; the first character opens and the second closes each element. The registered default-value text contains an unmatched quote.
Returns: Comma-separated String. NULL returns an empty string; a non-array value raises an exception; arrays with dimensions other than one or two produce an empty string.
Availability: Default.
Example:
Columns := VarArrayToCommaText(ColumnArray, "[]");