TJSONArray.Exchange¶
Exchange 2 elements in the list.
Declaration¶
Source position: fpjson.pp line 587
public
procedure TJSONArray.Exchange(Index1: Integer; Index2: Integer);
Description¶
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.
Errors¶
If an invalid index (for either element) is passed, an exception is raised.