IDimInstance.Levels

Syntax

Levels: IDimLevelsInstance;

Description

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

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Levels: IDimLevelsInstance;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Levels:=Dimen.Levels;
    i:=Levels.Item(Levels.Count-1).Elements.Count;
End Sub UserProc;

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