Count: Integer;
The Count property returns the number of dictionary elements.
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: