Name: String;
The Name property returns name of dictionary level.
Sub Main;
Var
MB: IMetabase;
Dimen: IDimInstance;
Levels: IDimLevelsInstance;
Level: IDimLevelInstance;
s: String;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;
Levels:=Dimen.Levels;
Level:=Levels.Item(Levels.Count-1);
s:=Level.Name;
End Sub Main;
After executing the example the "s" variable contains name of the last dictionary level.
See also: