Sign in Join
FPDoc Onlineexperiment

IEnumerator.MoveNext function

Member of IEnumeratorIn unit System

Move to the next value.

Declaration

pascal
function MoveNext: Boolean

Description

MoveNext should move the current item pointer to the next available item. It should return True if an item is available, False if no more items are available. The first time it is called It will be called at the beginning of the for loop, so it should position the enumerator on the first value (if there is one). After MoveNext has returned True, GetCurrent will be called to retrieve the item.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.