IDimElementArray.Count

Syntax

Count: Integer;

Description

The Count property returns the number of array elements.

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 ElemArr array contains all child elements of the tenth dictionary element, and the "i" variable contains their number.

See also:

IDimElementArray