Syntax
int ArraySetND( ITEM *array, size_t index, double value );
Arguments
array Array to access.
index Element position, counted from 1.
value Double to store.
Return value
1; 0 outside the array. The index counts from 1.
Description
Replaces the slot with a value of type IT_DOUBLE. Use ArrayGetND() to read it as double.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
ITEM *array = Array( 2 );
if( !array )
return 1;
ArraySetND( array, 1, 12.5 );
printf( "%.1f\n", ArrayGetND( array, 1 ) );
ItemRelease( array );
return 0;
}