TMethodList.Move procedure
Moves the position for the specified method in the list.
Declaration
procedure Move(OldIndex: Integer; NewIndex: Integer)Arguments
OldIndex | Existing position for the specified method. |
NewIndex | New position for the specified method. |
Description
Move is a procedure used to relocate a method stored in Items
using the specified positions arguments. OldIndex contains the existing
ordinal position where the method is stored in Items. NewIndex contains the
new ordinal position for the method in the Items property.
No actions are performed in the method when OldIndex and NewIndex contain the same value. RaiseIndexOutOfBounds is called to raise an exception when NewIndex does not contain a valid ordinal position for the Items property. In other words, NewIndex contains a negative value or exceeds the value from the Count function.
Move calls the System.Move method to relocate allocated memory in the Items property using the specified ordinal positions, and stores the requested method at the position in NewIndex.
Errors
Raises an EListError exception when NewIndex contains an invalid ordinal
position for Items in the list (not in the range 0..Count-1).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
