IDimInstance.RootElements

Syntax

RootElements: IDimElementArray;

Description

The RootElements property returns an object that contains an array of dictionary elements stored at zero level.

Example

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

After executing the example the "i" variable shows the number of dictionary elements at zero level. Repository object identifier: D_TO.

See also:

IDimInstance