IDimElementArray.Iterator

Syntax

Iterator: IDimIterator;

Description

The Iterator method creates an iterator container.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Elem: IDimElements;

ElemArr: IDimElementArray;

Iter: IDimIterator;

Begin

MB:=MetabaseClass.Active;

Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;

Elem:=Dimen.Elements;

ElemArr:=Elem.Children(10);

Iter:=ElemArr.Iterator;

End Sub Main;

After executing the example the Iter variable contains iterator.

See also:

IDimElementArray