Sign in Join
FPDoc Onlineexperiment

TObjectArray.Exchange procedure

Member of TObjectArraypublicIn unit ObjectLists

Swaps the item/object associations at the specified positions in List.

Declaration

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

Arguments

Index1

Ordinal position for the first item/object association.

Index2

Ordinal position for the second item/object association.

Description

Exchange is a procedure used to swap the item/object associations in the List at the ordinal positions specified in Index1 and Index2.

Use Move to change the location for an item/object association, and reorder the List as needed.

See also

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