CGrid:GetNumRows


The GetNumRows method returns the number of rows in the grid.

Syntax

nRows = CGrid:GetNumRows()

bullet.gif    Where nRows is the number of columns in the grid.

bullet.gif    On failure, 0 is returned.

Example

The following script returns the number of columns in a grid window:

G = new_grid()

-- create a new CGrid object

nRows = G:GetNumRows()

-- return the number of rows

Related Topics

CGrid class, GetNumCols


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