TFPSList.Exchange

Exchange two items in the list

Declaration

Source position: fgl.pp line 80

public 
  procedure Exchange(Index1: Integer; Index2: Integer);

Description

Exchange will exchange 2 items at positions Index1 and Index2 in the list.

Errors

If Index1 or Index2 are out of bounds, an EListError exception is raised.