IDimInstance.Levels

Syntax

Levels: IDimLevelsInstance;

Description

The Levels property returns an object that contains a collection of dictionary elements' levels.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Levels: IDimLevelsInstance;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Levels:=Dimen.Levels;

i:=Levels.Item(Levels.Count-1).Elements.Count;

End Sub Main;

After executing the example the "i" variable shows the number of elements at the last dictionary level. Repository object identifier: D_TO.

See also:

IDimInstance