CGridView:SetRow


The SetRow method saves the contents of a 1-dimensional table to a row of the CGridView.

Syntax

CGridView:SetRow( tbl, nRow )

CGridView:SetRow( tbl, nRow, nColMin )

CGridView:SetRow( tbl, nRow, nColMin, nColMax )

bullet.gif    Where tbl is a 1-dimensional array with values that are numbers. containing the values to set.

bullet.gif    Where nRow is the row to set. If no column range is specified, the row values are set starting in column 1.

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

Example

The following script sets the cells in row 12 starting with column 4:

G = new_gridview("My Grid", GridParams)

-- create CGridView with properties in GridParams

tbl = { 4.5, 16, -4.1, 6 }

-- create a table to save into row 12.

G:SetRow(tbl, 12, 4)

-- returns the contents of row 6 in the column range

Related Topics

CGridView class

GetRow

SetCol

SetStr

SetRect


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