CGridView:GetRect
The GetRect method returns a 2-dimensional 1-dimensional array with values that are numbers. containing the cell values in a rectangular region of columns and rows in the grid.
lua_table = CGridView:GetRect( rect )
lua_table = CGridView:GetRect( nColMin, nColMax, nRowMin, nRowMax )
Where rect
is a CRect object
containing the column and row limits.
nColMin,
nColMax, nRowMin, and nRowMax
are the column and row limits of the rectangle.
The
return value is a 2-dimensional 1-dimensional array with values
that are numbers. containing the cell values within the specified
rectangle.
On
failure, nil is
returned.
The following script returns the cell contents in columns 1 through 3 and rows 4 through 8:
|
-- create CGridView with properties in GridParams |
|
-- returns the contents of cells in [1:3, 4:8] |
|
-- list the values of the table. |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.