comp • gb.util • csvfile • quote

CsvFile.Quote (gb.util)

Static Function Quote ( Value As String [ , Separator As String, Escape As String ] ) As String

Since 3.15

Quote a string value for a CSV file.

  • Value if the string value to quote.

  • Separator is the CSV file field separator. By default a comma.

  • Escape is the CSV file escape character. By default a double quote.

"\r" characters are automatically removed when the string value has to be escaped, because it makes Microsoft Excel™ fail.