IDimInstance.Elements

Syntax

Elements: IDimElements;

Description

The Elements property returns a collection of elements of a dictionary instance.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Elements: IDimElements;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Elements:=Dimen.Elements;
    i:=Elements.Count;
End Sub UserProc;

After executing the example the "i" variable contains the number of dictionary elements. Repository object identifier: D_TO.

See also:

IDimInstance