The ifEnum supports enumeration over a set.  It can be used with the FOR EACH statement (FOR EACH)

Implemented By

Supported Methods

Description of Methods

Reset() as Void

Resets the current position to the first element of the enumeration.

Next() as Dynamic

Returns the value at the current position and increments the position.  If the last element of the enumeration is returned, sets the current position to indicate that it is now past the end.  If the current position is already past the end (that is, the last element has already been returned by a previous call to Next()), return invalid.

IsNext() as Boolean

Returns true if the current position is not past the end of the enumeration.

IsEmpty() as Boolean

Returns true if the enumeration contains no elements.