FindByKey(Key: Integer): IPrxSheet;
Key - sheet key.
The FindByKey method searches for a sheet by the specified key.
The following example assumes that there is the Report object with the IPrxReport type, which is opened for edit.
Sub UserProc;
Var
Report: IPrxReport;
Sheets: IPrxSheets;
Sheet: IPrxSheet;
Begin
Sheets := Report.Sheets;
Sheet := Sheets.FindByKey(3);
If Sheet <> Null Then
Sheet.Active := True;
End If;
End Sub UserProc;
After executing the example and if the search is successful, the sheet with the specified key becomes active.
See also: