IPrxControls.Item

Syntax

Item(Index: Integer): IPrxControl;

Parameters

Index - index of a control.

Description

The Item property returns an object containing a control of a regular report sheet.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

Contrls: IPrxControls;

Contrl: IPrxControl;

i: integer;

Begin

MB := MetabaseClass.Active;

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

Contrls := Report.Sheets.Item(0).Controls;

Contrl := Contrls.Item(0);

i := Contrl.Key;

End Sub Main;

After executing the example the "i" variable contains key of the first control of the first sheet of the regular report. The identifier of the regular report - Report.

See also:

IPrxControls