Show contents 

Dimensions > Dimensions Assembly Interfaces > IDimBlockInstance > IDimBlockInstance.BlockKey

IDimBlockInstance.BlockKey

Syntax

BlockKey: Integer;

Description

The BlockKey property returns key of dictionary block.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Blocks: IDimBlocksInstance;
    BlockInst: IDimBlockInstance;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Blocks:=Dimen.Blocks;
    BlockInst:=Blocks.Item(0);
    i:=BlockInst.BlockKey;
End Sub UserProc;

After executing the example the "i" variable contains key of the first dictionary block. Repository object identifier: D_TO.

See also:

IDimBlockInstance