Enumerator.AtEnd

Applies to TestComplete 15.47, last modified on January 20, 2023

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