Please enable JavaScript to view this site.

ESL Documentation

ESLLIB Function

Quote a string for CSV formatting.

EslCsvQuote(STRING_SV)

STRING_SV

The string you want quoted.

Description

This function puts the appropriate quotation marks around STRING_SV so you can use it for comma-separated values (CSV) formatting, if it is necessary. If STRING contains a comma, a new line, or a quote (") then it is quoted and all quote characters in the string are doubled;. otherwise, the string is returned unchanged.

Use this function when creating and parsing text strings with rows and columns, using the same rules for delimiters as for tables. This is useful for more complex input/output to tables or for providing CSV support for other types of ESL objects.

Be sure to include ESLLIB.INC before using this function.

See Also

EslCsvUnQuote( ) ESLLIB Function