NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void ArrayReplace ( variant &  asrc[],
unsigned int  idx,
variant  value 

Replace items in an array.

Replace one or more items in the specified source array. The items are replaced starting at the specified index. If the value provided has the same number of dimensions as the source array then multiple items in the source are replaced. If the value provided has one less dimension than the source array then one item will be replaced. Other differences between the source array and the new value dimensionality are not supported.

asrcThe input array to be modified
idxThe index of the item to replace.
valueThe new value or values to put into the source array.
You cannot use NXC expressions with this function