[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Classes' (#rtl)

# TCollectionEnumerator.MoveNext

Move the position of the enumerator to the next position in the collection.

## Declaration

Source position: classesh.inc line 514

`public function TCollectionEnumerator.MoveNext: Boolean;`

## Description

MoveNext puts the pointer on the next item in the collection, and returns True if this succeeded, or False if the pointer is past the last element in the list.

## Errors

Note that if False is returned, calling GetCurrent will result in an exception.

## See also

GetCurrent |  | Return the current pointer in the list

Documentation generated on: May 14 2021