[Overview][Types][Classes][Procedures and functions] |
Move an object to another location in the list.
Source position: contnrs.pp line 58
public procedure TFPObjectList.Move( |
CurIndex: Integer; |
NewIndex: Integer |
); |
CurIndex |
|
The current index of the object |
NewIndex |
|
The new index of the object |
Movemoves the object at current location CurIndexto location NewIndex. Note that the NewIndexis determined afterthe object was removed from location CurIndex, and can hence be shifted with 1 position if CurIndexis less than NewIndex.
Contrary to exchange, the move operation is done by extracting the object from it's current location and inserting it at the new location.
If either CurIndexor NewIndexis out of range, an exception may occur.
|
Exchange the location of two objects |
|
|
Delete an element from the list. |
|
|
Insert a new object in the list |