IDimElements.Count

Syntax

Count: Integer;

Description

The Count property returns the number of dictionary elements.

Example

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

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

See also:

IDimElements