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