IPrxSheets.FindByKey

Syntax

FindByKey(Key: Integer): IPrxSheet;

Parameters

Key - sheet key.

Description

The FindByKey method searches for a sheet by the specified key.

Example

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:

IPrxSheets