CGridView:GetNumSheets
The GetNumSheets method returns the number of sheets in the grid. Typically, grids are created with only 1 sheet. To add sheets after the grid is created, use the AddSheet method. To switch the grid to use a particular sheet, use the SelectSheet method.
nSheets = CGridView:GetNumSheets()
Where nSheets is the number of sheets in the grid.
On failure, 0 is returned.
The following script returns the number of sheets in the grid window:
|
-- attach the top-most grid window to the script |
|
-- return the number of sheets |
CGridView class, GetNumCols, GetNumRows, AddSheet, SelectSheet
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.