<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CSV > cCSV class > <cCSV> constructor > <cCSV> properties > <CCSV>.Root |
Description
Return number of columns found in CSV file after loading the file via <cCSV>.Load.
Syntax
nCols = <cCSV>.Columns
Returns
Number
Number of columns found in CSV file
Remarks
Equal to <cCSV>.Column.Count
Restrictions
You can use this property after a call to <cCSV>.Load.
See also
Examples
uses "CSV", "console"
dim data as new cCSV
data.Load(APP_ScriptPath + "big.csv", True) ' Change to existing CSV file
printl $("Number of columns found: {data.Columns}")
waitkey