CGridCtrl:GetNumCols, CGridView:GetNumCols


The GetNumCols method returns the number of columns in the grid.

Syntax

nCols = CGridCtrl:GetNumCols()

bullet.gif    Where nCols 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:

V = attach_gridview()

-- attach the top-most grid window

G = new_gridctrl(V)

-- create a CGridCtrl for the window

nCols = G:GetNumCols()

-- return the number of columns

Related Topics

CGridCtrl class

GetNumRows

GetNumSheets

SetNumCols


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