Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TCollection.Move

Move an item in the collection.

Declaration

Source position: classesh.inc line 850

public procedure TCollection.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

TCollection.Exchange

  

Exchange 2 items in the collection.


Documentation generated on: Nov 22 2024