SwapArrayItems Function

Swaps two items in the array.

void SwapArrayItems(Handle array, int index1, int index2)

Parameters

Handle array

Array Handle.

int index1

First index.

int index2

Second index.

Errors

Invalid Handle or invalid index.