Item(Index: Variant): IDimLevel;
Index — level index.
The Item property returns an object containing dictionary level index of which is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
DimModel: IDimensionModel;
Levels: IDimLevels;
Level: IDimLevel;
s: String;
Begin
MB:=MetabaseClass.Active;
DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;
Levels:=DimModel.Levels;
If Levels.Count<>0 Then
Level:=Levels.Item(0);
s:=Level.Name;
End If;
End Sub Main;
After executing the example the "s" variable contains name of the first dictionary level, if any levels are created in the dictionary. Repository object identifier: D_TO.
See also: