IDimLevelsInstance.Count

Syntax

Count: Integer;

Description

The Count property returns the number of dictionary element 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.Count;
End Sub UserProc;

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

See also:

IDimLevelsInstance