IDimElements.LevelKey

Syntax

LevelKey(Element: Integer): Integer;

Parameters

Element — index of dictionary element.

Description

The Level property returns key of dictionary level containing element with the Element index.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Elem: IDimElements;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Elem:=Dimen.Elements;
    i:=Elem.LevelKey(20);
End Sub UserProc;

After executing the example the "i" variable contains key of dictionary level that houses selected element.

See also:

IDimElements