IDimElements.ChildrenCount

Syntax

ChildrenCount(Element: Integer): Integer;

Parameters

Element — index of dictionary element.

Description

The ChildrenCount property returns the number of children for the element with the Element index.

Comments

This property returns the number of direct child elements positioned one level below the Element element. Use the AllChildrenCount property to get the total number of children positioned on all levels below the Element element level.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Elem: IDimElements;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Elem:=Dimen.Elements;

i:=Elem.ChildrenCount(10);

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