ParseCSV
(System Library)
| Description: | Takes a CSV record as a string and returns it as an array of the record's coma separated values. |
| Returns: | Array |
Usage: ![]() |
Script Only. |
| Function Groups: | CSVParseLib |
| Related to: | BuildCSVRecord |
Format: ![]() |
\CSVParseLib.ParseCSV(Record[, ConvertEscSeq, pError]); |
| Parameters: |
| Record |
| Required. Comma separated values as a single string. |
| ConvertEscSeq |
|
Optional boolean. If TRUE, replaces special characters within the values with their equivalent escape sequences ('\\', '\n', or '\r' for example). Defaults to TRUE. |
| pError |
| Optional pointer to receive an error flag. |
| Comments: |
Standard CSV parsing tools do not automatically convert escape characters to simple string elements. Set 'ConvertEscSeq' to FALSE if the standard behavior is desired. |
Example:
\CSVParseLib.ParseCSV(Record, TRUE, errorPointer);
