Sign in Join
FPDoc Onlineexperiment

TJSONArray.Move procedure

Member of TJSONArraypublicIn unit fpJson

Move a value from one location to another.

Declaration

pascal
procedure Move(CurIndex: Integer; NewIndex: Integer)

Arguments

CurIndex

Current index of the element.

NewIndex

Final index of the element.

Description

Move moves the element at index CurIndex to the position NewIndex. It will shift the elements in between as needed. This operation is more efficient than extracting and inserting the element manually.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.