CGridCtrl:GetSheet, 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:

V = attach_gridview()

-- attach a grid to the script

G = new_gridctrl(V)

-- create a CGridCtrl for the window

nSheet = G:GetSheet()

-- return the current sheet index

Related Topics

CGridCtrl class

GetNumCols

GetNumRows

AddSheet

SelectSheet


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