CGridView:GetSheet
The GetSheet method returns the currently visible (top-most) sheet of the grid window. The first sheet has index = 1. Normally, grids are created with only 1 sheet.
nCurrentSheet = CGridView:GetSheets()
Where nCurrentSheet is the index of the current top-most sheet, beginning with index 1.
The following script returns the current top-most sheet in the grid window:
|
-- attach a grid to the script |
|
-- return the current sheet index |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.