IPrxTableIslands.FindByKey

Syntax

FindByKey(Key: Integer): IPrxTableIsland;

Parameters

Key - key of a relational data area.

Description

The FindByKey method searches for a relational data area by the specified key.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TabIs : IPrxTableIslands;

TI : IPrxTableIsland;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

TabIs := Report.TableIslands;

TI := TabIs.FindByKey(4);

TI.Sheet := Report.Sheets.Item(1);

TI.Save;

MObj.Save;

End Sub Main;

After executing the example the system redetermines the sheet, on which the found relational data is located. Report - identifier of a regular report.

See also:

IPrxTableIslands