Sign in Join
FPDoc Onlineexperiment

TCollection.Move procedure

Member of TCollectionpublicIn unit Classes

Move an item in the collection.

Declaration

pascal
procedure Move(const Index1: Integer; const index2: Integer)

Description

Move will move the collection item from position index1 to Index2. In difference with Exchange the indexes of the elements between index1 to Index2 will shift.

Errors

If an invalid index is specified in index1 or Index2, an exception will be raised.

See also

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