CGrid:Get


The Get method returns grid cell value. The value may be interpreted as a number or a string

Syntax

Value = CGrid:Get( nCol, nRow )

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

bullet.gif    On success, Value is returned and may be interpreted as a number or string.

bullet.gif    On failure, nil is returned.

Example

The following script returns the cell contents in (column 5, row 10):

G = new_grid()

-- Create a CGrid object

-- assemble the grid

 

sValue = G:Get(5,10)

-- return the value in cell (5,10) as a string

Printf("value(5,10) = %s\n", sValue)

-- list the string value.

Related Topics

CGrid Class, Set


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