IPrxDataIslands.FindByKey

Syntax

FindByKey(Key: Integer): IPrxDataIsland;

Parameters

Key - the key, on which the search is based.

Description

The FindByKey method finds an object containing a data area of the regular report based on its key and returns the object.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

s: String;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DIs := Report.DataIslands;

DI := DIs.FindByKey(1);

s := DI.Name;

End Sub Main;

After executing the example the "s" variable contains name of the data area of the regular report that has the 1 key. The identifier of the regular report - Report.

See also:

IPrxDataIslands