IDimElements.BlockKey

Syntax

BlockKey(Element: Integer): Integer;

Parameters

Element — index of dictionary element.

Description

The BlockKey property returns key of dictionary block that includes 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.BlockKey(20);
End Sub UserProc;

After executing the example the "i" variable contains key of dictionary block containing the 20th element. Repository object identifier: D_TO.

See also:

IDimElements