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

ArraySetInt

Sets an integer value within an array.

Syntax

INTArraySetInt(INT hArray, INT nValue, INT x [, INT y [, INT z]])

hArray:

The handle of the array.

nValue:

The value you would like to set.

x:

The index for the x–dimension.

y:

The index for the y–dimension.

z:

The index for the z–dimension.

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, ArraySetIntByAn, ArraySetIsDirty, ArraySetString, ArraySetStringByAn, ArraySwap, DspArrayByAn

Example

...
error1= ArraySetInt(hArray, IntToStr(i), 0, 0, 0);
value1= ArrayGetInt(hArray, 0, 0, 0);
...

See Also

Published June 2018