CGrid:SetStr


The SetStr method assigns a string value to a grid cell.

Syntax

CGrid:SetNum( nCol, nRow, strValue )

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

bullet.gif    Where strValue isstring value to assign to the specified cell.

Example

The following script sets the cell contents of column 5, row 10 to the value -27.52:

G = new_grid()

-- create a CGrid object

G:SetStr(5,10,"my value")

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

Related Topics

CGrid class, GetNum, GetStr, SetVal


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