Show contents 

Dimensions > Dimensions Assembly Interfaces > IDimElementArray > IDimElementArray.Count

IDimElementArray.Count

Syntax

Count: Integer;

Description

The Count property returns the number of array elements.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Elem: IDimElements;
    ElemArr: IDimElementArray;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Dimen := MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Elem := Dimen.Elements;
    ElemArr := Elem.Children(10);
    i := ElemArr.Count;
End Sub UserProc;

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