CGridView:GetRect CGridView:GetSheet

CGridView:GetRow


The GetRow method returns a 1-dimensional array with values that are numbers. containing the cell values in the specified row.

Syntax

lua_table = CGridView:GetRow( nRow )

lua_table = CGridView:GetRow( nRow, nColMin )

lua_table = CGridView:GetRow( nRow, nColMin, nColMax )

bullet.gif    Where nRow is the row to return. If column limits are not specified, the entire row is extracted.

bullet.gif    nColMin is the first column to extract and nColMax is the last column to extract.

bullet.gif    The return value is a 1-dimensional array with values that are numbers. containing the row values within the specified column range.

bullet.gif    On failure, nil is returned.

Example

The following script returns the cell contents in row 12, between column 2 and column 5:

G = new_gridview("My Grid", GridParams)

-- create CGridView with properties in GridParams

tbl = G:GetRow(12, 2, 5)

-- return the values in row 12 from columns 2 through 5

list(tbl)

-- list the values in the table

Related Topics

CGridView class

SetRow

GetCol

GetStr

GetRect


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.