<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CSV > cCSV class > <cCSV> constructor > <cCSV> properties > <CCSV>.Root |
Description
Get/Set field data from matrix created by <cCSV>.Load operations
Syntax
'---GET
sFieldData = <cCSV>.Data(nRow, nCol)
'---SET
<cCSV>.Data(nRow, nCol) = sFieldData
Returns
Parameters
Name |
Type |
Optional |
Meaning |
nRow |
Number |
No |
Row Number |
nCol |
Number |
No |
Column number |
sFieldData |
String |
During a SET operation: any string to be set into CSV Data matrix |
Remarks
In case referenced cell is out of bounds, empty string will be returned or no changes will take place.
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 $("Data of cell at row 2, column 3: '{data.Column.Data(2, 3)}'")
waitkey