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

Var

MB: IMetabase;

Dimen: IDimInstance;

RootElem: IDimElementArray;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

RootElem:=Dimen.RootElements;

i:=RootElem.Count;

End Sub Main;

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

See also:

IDimInstance