CGridView:GetCol
The GetCol method returns a 1-dimensional array with values that are numbers. containing the cell values in the specified column.
lua_table = CGridView:GetCol( nCol )
lua_table = CGridView:GetCol( nCol, nRowMin )
lua_table = CGridView:GetCol( nCol, nRowMin, nRowMax )
Where nCol
is the column to return. If row limits are not specified, the
entire column is extracted.
nRowMin is
the first row to extract and nRowMax is
the last row to extract.
The
return value is a 1-dimensional array with values that are numbers.
containing the column values within the specified row range.
On
failure, nil is
returned.
The following script returns the cell contents in column 6, between row 2 and row 4:
|
-- create CGridView with properties in GridParams |
|
-- returns the values in column 6 from rows 2 through 4 |
|
-- list the values in the table. |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.