Sign in Join
FPDoc Onlineexperiment

TFPSList.Exchange procedure

Member of TFPSListpublicIn unit fgl

Exchange two items in the list.

Declaration

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

Arguments

Index1

First item.

Index2

Second item.

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.

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