[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'fpjson' (#fcl)

# TJSONArray.Move

Move a value from one location to another

## Declaration

Source position: fpjson.pp line 575

`public procedure TJSONArray.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

Exchange |  | Exchange 2 elements in the list
Extract |  | Extract an element from the array
Insert |  | Insert an element in the array.

Documentation generated on: May 14 2021