[Overview][Classes][Procedures and functions][Index] |
Moves the position for the specified method in the list.
Source position: lazmethodlist.pas line 57
public procedure TMethodList.Move( |
OldIndex: Integer; |
NewIndex: Integer |
); |
OldIndex |
|
Existing position for the specified method. |
NewIndex |
|
New position for the specified method. |
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.
Raises an EListError exception when NewIndex contains an invalid ordinal position for Items in the list (not in the range 0..Count-1).
|
Provides indexed access to methods in the list. |
|
|
Gets the number of items included in the method list. |
Version 4.0 | Generated 2025-05-03 | Home |