<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CSV > cCSV class > <cCSV> constructor > <cCSV> properties > <CCSV>.Char.Delim |
Description
Get/Set character to use as field delimiter during <cCSV>.Load operations.
Syntax
'---GET
sChar = <cCSV>.Char.Delim
'---SET
<cCSV>.Char.Delim = sChar
Returns
String, single delim character.
Remarks
Restrictions
Char delimiter must be 1 single char long.
You need to set delimiter before a call to <cCSV>.Load.
See also
Examples
uses "CSV", "console"
dim data as new cCSV
printl $("Delimiter now: '{data.Char.Delim}'")
data.Char.Delim = ";"
printl $("Delimiter after change: '{data.Char.Delim}'")
waitkey