IPrxFormulaIslands.FindById

Syntax

FindById(Id: String): IPrxFormulaIsland;

Parameters

Id - identifier of a formula area.

Description

The FindById method searches for a formula area based on the specified identifier.

Example

The following example assumes that there is the Report object with the IPrxReport type and the ComboBox component containing the list of identifiers of the formula areas located on the report sheet.

Sub ComboBox1OnChange(Sender: Object; Args: IEventArgs);

Var

Report: IPrxReport;

TableSheet : IPrxTable;

isl: IPrxFormulaIslands;

Begin

TableSheet := Report.ActiveSheet As IPrxTable;

isl := Report.FormulaIslands;

TableSheet.TabSheet.View.Selection.Range := isl.FindById(ComboBox1.Text).Range;

End Sub ComboBox1OnChange;

On selecting an identifier in the list of the ComboBox component the corresponding formula area on the report sheet is selected.

See also:

IPrxFormulaIslands