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.

Syntax

nCurrentSheet = CGridView:GetSheets()

bullet.gif    Where nCurrentSheet is the index of the current top-most sheet, beginning with index 1.

Example

The following script returns the current top-most sheet in the grid window:

G = attach_gridview()

-- attach a grid to the script

nSheet = G:GetSheet()

-- return the current sheet index

Related Topics

CGridView class, GetNumCols, GetNumRows, AddSheet, SelectSheet


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