CGridView:SetHorzAlign CGridView:SetNumCols

CGridView:SetNum


The SetNum method assigns a numeric value to a grid cell.

Syntax

CGridView:SetNum( nCol, nRow, nValue )

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

bullet.gif    Where nValue is the numeric 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 = attach_gridview()

-- attach a grid on the Mira desktop

G:SetNum(5,10,-27.52)

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

Related Topics

CGridView class

GetNum

SetStr

SetVal


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