Show contents 

Home > Foresight Analytics Platform > Web Application and Desktop Application > Application Development and Functionality Enhancement > Developing in Development Environment > Description of System Assemblies > Dimensions > Dimensions Assembly Interfaces > IDimLevelInstance > IDimLevelInstance.Elements

IDimLevelInstance.Elements

Syntax

Elements: IDimElementArray;

Description

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

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Levels: IDimLevelsInstance;
    Level: IDimLevelInstance;
    Elem: IDimElementArray;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Levels:=Dimen.Levels;
    Level:=Levels.Item(Levels.Count-1);
    Elem:=Level.Elements;
    i:=Elem.Count;
End Sub UserProc;

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

See also:

IDimLevelInstance