MoveNext( ) method (Iterator)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Positions the iterator at the next element in the collection. The first time
MoveNext() is called, or after Reset() is called, the iterator is positioned at the
first element of the collection, if one exists. MoveNext() returns TRUE if the repositioning was successful; otherwise
MoveNext() returns FALSE.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Collections.ListIterator <T> class, Progress.Collections.SortedSetIterator<T> class, Progress.Collections.HashMapIterator<K,V> class, Progress.Collections.KeySetIterator<K> class
Syntax
|
Note: Any iterators on the collection
become invalid once
Add(), AddAll(), Clear(), Insert(), Remove(),
RemoveAt(), or Set() are called, and you must get a new iterator to iterate over the
collection.Example
For a code example showing MoveNext(), see Progress.Collections.IIterator<T> interface.