ITabSheet.Regions

Syntax

Regions: ITabRegions;

Description

The Regions property returns the object, containing table regions collection.

Example

Sub Main;

Var

MB: IMetabase;

Rep: IPrxReport;

Tab: ITabSheet;

Reg: ITabRegions;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Tab:=Rep.ActiveSheet.Table;

Reg:=Tab.Regions;

i:=Reg.Count;

End Sub Main;

As a result the "i" variable will contain the number of data areas and formula areas of the regular report. The identifier of the regular report is Reg_rep.

See also:

ITabSheet