Levels: IDimLevels;
The Levels property returns an object that contains a collection of dictionary levels.
Sub Main;
Var
MB: IMetabase;
DimModel: IDimensionModel;
DimLevels: IDimLevels;
i: Integer;
Begin
MB:=MetabaseClass.Active;
DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;
DimLevels:=DimModel.Levels;
i:=DimLevels.Count;
End Sub Main;
After executing the example the "i" variable contains the number of dictionary levels. Repository object identifier: D_TO.
See also: