Sign in Join
FPDoc Onlineexperiment

TFPListEnumerator class

In unit Classes

Implements IEnumerator for the TFPList class.

Declaration

pascal
TFPListEnumerator = class

Descends from it: TListEnumerator

Description

TFPListEnumerator implements the IEnumerator interface for the TFPList class, so the TFPList class can be used in a for ... in loop. It is returned by the GetEnumerator method of TFPList.

See also

Properties

CurrentpublicCurrent pointer in the list.

Methods

CreatepublicInitialize a new instance of TFPListEnumerator.
GetCurrentpublicReturn the current pointer in the list.
MoveNextpublicMove the position of the enumerator to the next position in the list.

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