IPrxControls.Count

Syntax

Count: Integer;

Description

The Count property returns the number of controls of the regular report.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

Contrls: IPrxControls;

i: integer;

Begin

MB := MetabaseClass.Active;

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

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

i := Contrls.Count;

End Sub Main;

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

See also:

IPrxControls