CGridView:GetStr


The GetStr method returns grid cell contents as a string.

Syntax

strValue = CGridView: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 strValue.

bullet.gif    On failure, nil is returned.

Example

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

G = new_gridview()

-- create a CGridView object

-- fill the grid

 

strValue = G:GetStr(5,10)

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

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

-- list the string value.

Related Topics

CGridView class

SetStr

GetNum

GetVal


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