The Swap function swaps two items.
Syntax
Integer Array.Swap(
Integer index,
Integer index2)
Integer index,
Integer index2)
Parameters
| index | Index of the first item. | Required |
|---|---|---|
| index2 | Index of the second item. | Required |
Return value
The Swap function returns true.
If an error occurs, the Swap function returns false.
Example
myArray.Swap(2, 5)