IDimElements.Level

Syntax

Level(Element: Integer): IDimLevelInstance;

Parameters

Element — index of dictionary element.

Description

The Level property returns an object that contains dictionary level where the element with the index Element is positioned.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Elem: IDimElements;
    Level: IDimLevelInstance;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Elem:=Dimen.Elements;
    Level:=Elem.Level(89);
    s:=Level.Name;
End Sub UserProc;

After executing the example the "s" variable contains name of dictionary element housing the 89 element. Repository object identifier: D_TO.

See also:

IDimElements