CGrid:GetStr


The GetStr method returns grid cell contents as a string.

Syntax

sValue = CGrid:GetStr( nCol, nRow )

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

bullet.gif    On success, the string value in the specific grid cell is returned as sValue.

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

 

sValue = G:GetStr(5,10)

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

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

-- list the string value.

Related Topics

CGrid class, SetNum, SetStr

 


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