Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONArray.Exchange

Exchange 2 elements in the list.

Declaration

Source position: fpjson.pp line 575

public procedure TJSONArray.Exchange(

  Index1: Integer;

  Index2: Integer

);

Arguments

Index1

  

Index of the first element.

Index2

  

Index of the second element.

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.


Documentation generated on: Dec 22 2024