Interface

Iterator


Description

Iterators perform the actual task of yielding values from the Iterable object.

Methods

Name

Parameters

Returns

Shared

MoveNext

Boolean

Value

Variant

Method descriptions


Iterator.MoveNext

MoveNext As Boolean

Moves the Iterator to the next item.

Return False when there are no more items, otherwise return True.


Iterator.Value

Value As Variant

The value of the current item in the Iterator. The Value is invalid when MoveNext returns False. It is also invalid before the first call to MoveNext.

Return the value of the current item in the Iterator.

Compatibility

All project types on all supported operating systems.

See also

Iterable interface