ArraySwap(array, position1, position2)

Swaps array values for the specified array at the specified positions. ArraySwap can be used with greater efficiency than multiple CFSETs.

Returns a Boolean TRUE on successful completion.

array

Name of the array whose elements you want to swap.

position1

Position of the first element you want to swap.

position2

Position of the second element you want to swap.