CGridView:GetNumCols
The GetNumCols method returns the number of columns in the grid.
nCols = CGridView:GetNumCols()
Where nCols is the number of columns in the grid.
On failure, 0 is returned.
The following script returns the number of columns in a grid window:
|
-- attach the top-most grid window |
|
-- return the number of columns |
CGridView class, GetNumRows, GetNumSheets, SetNumCols
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.