Cicode Programming Reference > Cicode Function Categories > Array Functions > ArraySwap

ArraySwap

Swaps the contents of two arrays.

Syntax

INT ArraySwap(INT hArray1, INT hArray2)

hArray1:

The handle of the array that you would like to swap with hArray2.

hArray2:

The handle of the array that you would like to swap with hArray1.

Return Value

If unsuccessful, an error code will be returned by the IsError Cicode function.

Related Functions

ArrayCreate, ArrayCopy, ArrayCreateByAn, ArrayDestroy, ArrayDestroyByAn, ArrayExists, ArrayExistsByAn, ArrayFillFromAlarmDataByAn, ArrayGetArrayByAn, ArrayGetInfo, ArrayGetInt, ArrayGetIntByAn, ArrayGetMapName, ArrayGetMapNameByAn, ArrayGetString, ArrayGetStringByAn, ArrayIsDirty, ArraySetInt, ArraySetIntByAn, ArraySetIsDirty, ArraySetString, ArraySetStringByAn, DspArrayByAn

Example

error1 = ArraySwap(hArray1, hArray2);

See Also

Published June 2018