IUserDimLevels.Count

Syntax

Count: Integer;

Description

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

Example

Sub Main;

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 Main;

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

See also:

IUserDimLevels