IDimElements.Block

Syntax

Block(Element: Integer): IDimBlockInstance;

Parameters

Element — index of dictionary element.

Description

The Block property returns object that contains dictionary block which includes element with the Element index.

Example

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

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

See also:

IDimElements