The Move function changes the position of the specified item.
Syntax
Integer Array.Move(
Integer source,
Integer target,
Integer count = 1)
Integer source,
Integer target,
Integer count = 1)
Parameters
| source | Index of the item to move. | Required |
|---|---|---|
| target | New position. -1: End. | Required |
| count | Number of consecutive items to move. | Optional |
Return value
The Move function returns true.
If an error occurs, the Move function returns false.
Example
// The first will be the last
myArray.Move(0, -1)
myArray.Move(0, -1)