IDimInstance.Dimension

Syntax

Dimension: IDimensionModel;

Description

The Dimension property returns an object containing dictionary structure.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

DimModel: IDimensionModel;

i: Integer;

Begin

MB:=MetabaseClass.Active;

Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;

DimModel:=Dimen.Dimension;

i:=DimModel.Attributes.Count;

End Sub Main;

After executing the example the "i" variable contains the number of dictionary attributes.

See also:

IDimInstance