IDimElements.Children

Syntax

Children(Element: Integer): IDimElementArray;

Parameters

Element — index of dictionary element.

Description

The Children property returns an object containing an array of child elements for the element with the Element index.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Elem: IDimElements;

ElemArr: IDimElementArray;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Elem:=Dimen.Elements;

ElemArr:=Elem.Children(10);

i:=ElemArr.Count;

End Sub Main;

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

See also:

IDimElements