Show contents 

Dimensions > Dimensions Assembly Interfaces > IDimBlockInstance > IDimBlockInstance.Elements

IDimBlockInstance.Elements

Syntax

Elements: IDimElementArray;

Description

The Elements property returns an object that contains an array of dictionary block elements.

Example

Executing the example requires that the repository contains a dictionary with the D_TO identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Blocks: IDimBlocksInstance;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Dimen := MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Blocks := Dimen.Blocks;
    For i := 0 To Blocks.Count - 1 Do
        Debug.WriteLine(Blocks.Item(i).Elements.Count);
    End For;
End Sub UserProc;

After executing the example the development environment console shows the number of elements in each dictionary block.

See also:

IDimBlockInstance