Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimLevels > IUserDimLevels.Count

IUserDimLevels.Count

Syntax

Count: Integer;

Description

The Count property returns the number of levels in calculated dictionary.

Example

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimLevs: IUserDimLevels;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimLevs:=UsDim.Levels;
    i:=UsDimLevs.Count;
End Sub UserProc;

After executing the example the "i" variable contains the number of levels of the calculated dictionary. Calculated dictionary identifier - USER_DIM.

See also:

IUserDimLevels