BuildCSVRecord

(System Library)

Description: Takes an array of values and returns them in a string, delineated by commas (a CSV record).
Returns: String
Usage: Script Only.
Function Groups: CSVParseLib
Related to: ParseCSV
Format: \CSVParseLib.BuildCSVRecord(Parameters[, IncludeFinalInvalids]);
Parameters:  
Parameters
An array of values.
IncludeFinalInvalids
Optional boolean. If TRUE, invalid values will be included at the end of the array. Defaults to FALSE.
Separator
Optional string. If specified, this string will separate each value within the output. If nothing is specified in the parameters, a comma will separate each value by default (",").
Comments:

Invalid values in the 'Parameters' array will be represented by consecutive commas with no text.

By default, invalids following the total valid values in the array will be omitted with no indication that they were present. If 'IncludeFinalInvalids' is set to TRUE, they will be represented in the string by trailing commas, ",,,,,,,", for example.

Example:

\CSVParseLib.BuildCSVRecord(["levels tag", "station 3", INVALID, INVALID], TRUE, "#");