Enumerator.AtEnd

Applies to TestComplete 15.70, last modified on December 17, 2024

Returns True if the enumerator is at the end of the collection and False otherwise.

Declaration

EnumObj.AtEnd()
EnumObj     An Enumerator object  
Result     Boolean  

Description

The AtEnd method allows you to check if the end of the collection has been reached. A common way to enumerate the collection items is to use a while loop with the AtEnd method call in the loop condition.

Return Value

True if the collection is empty or the enumerator is positioned at the end of the collection. Otherwise False.

See Also

Enumerator.Item
Enumerator.MoveFirst
Enumerator.MoveNext

Highlight search results