CGrid:Set


The Set method assigns a value to a grid cell.

Syntax

CGrid:Set( nCol, nRow, Value )

bullet.gif    nCol, and nRow are the coordinates of the cell to set.

bullet.gif    Value is the string or numeric value to assign to the cell.

Example

The following script sets the cell contents of (column 5, row 10) to "My value" and (column 4, row 10) to 15.5:

G = new_grid()

-- create a CGrid object

-- assemble the grid

 

G:Set(5,10,"My value")

-- set the string value in cell (5,10)

G:Set(4,10,15.5)

-- set the numeric value in cell (4,10)

Related Topics

CGrid class, Get


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