CGrid:GetNum


The GetNum method returns grid cell contents as a number.

Syntax

nValue = CGrid:GetNum( nCol, nRow )

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

bullet.gif    On success, the numeric value in the specific grid cell is returned as nValue.

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

-- fill the grid

 

nValue = G:GetNum(5,10)

-- return the numeric value in cell (5,10)

Printf("value(5,10) = %lg\n", nValue)

-- list the numeric value.

Related Topics

CGrid class, SetNum, GetStr


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