CGridView:GetNum


The GetNum method returns grid cell contents as a number.

Syntax

nValue = CGridView: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 = attach_gridview()

-- attach a grid on the Mira desktop

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

CGridView class

SetNum

GetStr


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