BlockKey(Element: Integer): Integer;
Element — index of dictionary element.
The BlockKey property returns key of dictionary block that includes element with the Element index.
Sub Main;
Var
MB: IMetabase;
Dimen: IDimInstance;
Elem: IDimElements;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;
Elem:=Dimen.Elements;
i:=Elem.BlockKey(20);
End Sub Main;
After executing the example the "i" variable contains key of dictionary block containing the 20th element. Repository object identifier: D_TO.
See also: