Item(Index: Variant): IDimLevelInstance;
Index — index or ID of dictionary level.
The Item property returns object containing dictionary elements' level.
Sub Main;
Var
MB: IMetabase;
Dimen: IDimInstance;
Levels: IDimLevelsInstance;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;
Levels:=Dimen.Levels;
i:=Levels.Item(Levels.Count-1).Elements.Count;
End Sub Main;
After executing the example the "i" variable shows the number of elements at the last dictionary level. Repository object identifier: D_TO.
See also: