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 Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Blocks: IDimBlocksInstance;

i: Integer;

Begin

MB := MetabaseClass.Active;

Dimen := MB.ItemById("D_TO").Open(Null) As IDimInstance;

Blocks := Dimen.Blocks;

For i := 0 To Blocks.Count - 1 Do

Debug.WriteLine(Blocks.Item(i).Elements.Count);

End For;

End Sub Main;

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

See also:

IDimBlockInstance