NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void ArrayIndex ( variant &  out,
variant  asrc[],
unsigned int  idx 
)
inline

Extract item from an array.

Extract one element from an array. The output type depends on the type of the source array.

Parameters
outThe output value.
asrcThe input array from which to extract an item.
idxThe index of the item to extract.
Warning
You cannot use NXC expressions with this function
Examples:
ex_nbcopt.nxc.