Enumerator.MoveNext

Applies to TestComplete 15.46, last modified on January 09, 2023

Moves the enumerator to the next item in the collection.

Declaration

EnumObj.MoveNext()
EnumObj     An Enumerator object  
Result     None  

Description

The MoveNext method moves the collection enumerator to the next item. To obtain the current item, call the Item method.

If the enumerator is at the end of the collection, the AtEnd method returns True. Use this method to check if the end of the collection has been reached. To bring the enumerator back to the first element, use the MoveFirst method.

See Also

Enumerator.AtEnd
Enumerator.Item
Enumerator.MoveFirst

Highlight search results