IDimLevelInstance.Elements

Syntax

Elements: IDimElementArray;

Description

The Elements property returns an object containing all elements of dictionary level.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Levels: IDimLevelsInstance;

Level: IDimLevelInstance;

Elem: IDimElementArray;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Levels:=Dimen.Levels;

Level:=Levels.Item(Levels.Count-1);

Elem:=Level.Elements;

i:=Elem.Count;

End Sub Main;

After executing the example the "i" variable shows the number of elements at the last dictionary level.

See also:

IDimLevelInstance