Dimensions > Dimensions Assembly Interfaces > IUserDimLevels > IUserDimLevels.Count
Count: Integer;
The Count property returns the number of levels in calculated dictionary.
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: