Show contents 

Tab > Tab Assembly Interfaces > ITabSheet > ITabSheet.Regions

ITabSheet.Regions

Syntax

Regions: ITabRegions;

Description

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

Example

Sub UserProc;
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 UserProc;

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