<CCSV>.Root

<< 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>.Column.Count

 

Returns

 

Number

Number of columns found in CSV file

 

Remarks

 

Equal to <cCSV>.Columns

 

Restrictions

 

You can use this property after a call to <cCSV>.Load.

 

See also

 

<cCSV>.Columns

<cCSV>.Load

 

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.Column.Count}")

 
waitkey