Exchange 2 elements in the list.
Source position: fpjson.pp line 575
public procedure TJSONArray.Exchange( |
Index1: Integer; |
Index2: Integer |
); |
Index1 |
|
Index of the first element. |
Index2 |
|
Index of the second element. |
Exchange exchanges 2 elements at locations Index1 and Index2 in the list. This is more efficient than manually extracting and adding the elements to the list.
If an invalid index (for either element) is passed, an exception is raised.