IPrxSheets.FindByName

Syntax

FindByName(Id: String): IPrxSheet;

Parameters

Id - sheet name.

Description

The FindByName method searches for a sheet by the specified name.

Example

The following example assumes that there is the Report object with the IPrxReport type, which is opened for edit.

Sub UserProc;

Var

Sheets: IPrxSheets;

Sheet: IPrxSheet;

Begin

Sheets := Report.Sheets;

Sheet := Sheets.FindByName("Sheet3");

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 name becomes active.

See also:

IPrxSheets