Index: Integer;
The Index property returns index of the sheet in the list.
Sub Main;
Var
MB: IMetabase;
Report: IPrxReport;
Sheet: IPrxSheet;
i: Integer;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Bind As IPrxReport;
Sheet := Report.ActiveSheet;
i := Sheet.Index;
End Sub Main;
After executing the example the "i" variable contains the index of the active sheet of the regular report. The identifier of the regular report - Report.
See also: