CGridView:GetCellStart CGridView:GetMaxCol

CGridView:GetCol


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

Syntax

lua_table = CGridView:GetCol( nCol )

lua_table = CGridView:GetCol( nCol, nRowMin )

lua_table = CGridView:GetCol( nCol, nRowMin, nRowMax )

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

bullet.gif    nRowMin is the first row to extract and nRowMax is the last row to extract.

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

bullet.gif    On failure, nil is returned.

Example

The following script returns the cell contents in column 6, between row 2 and row 4:

G = new_gridview("My Grid", GridParams)

-- create CGridView with properties in GridParams

tbl = G:GetCol(6, 2, 4)

-- returns the values in column 6 from rows 2 through 4

list(tbl)

-- list the values in the table.

Related Topics

CGridView class

GetRow

FindCol

GetStr

GetRect


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