IDimElements.Count

Syntax

Count: Integer;

Description

The Count property returns the number of dictionary elements.

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.Count;

End Sub Main;

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

See also:

IDimElements