Sign in Join
FPDoc Onlineexperiment

TItemPropList.Exchange procedure

Member of TItemPropListpublicIn unit ValEdit

Swaps the items at the specified positions.

Declaration

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

Arguments

Index1

Ordinal position for the item to be swapped.

Index2

Ordinal position for the item to be swapped.

Description

Exchange is a procedure used to swap the items at the specified positions in the list. Exchange calls the corresponding method in TFPObjectList using Index1 and Index2 as arguments. Exchange is used in the implementation of the TValueListStrings.Exchange method.

See also

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