Active: Booelan;
The Active property determines whether a new sheet will be active.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Sheet: IPrxSheet;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("REPORT").Edit;
Report := MObj As IPrxReport;
Sheet := Report.Sheets.Item(0);
Sheet.Active := True;
MObj.Save;
End Sub UserProc
After executing the example the first sheet of the regular report with the Report identifier becomes active.
See also: