version 2003
PA_SetRealInArray (array; index; value)
| Parameter | Type | Description | |
| array | PA_Variable | Array to access | |
| index | long | Index of the element to access | |
| value | double | New value for element index |
Description
The routine PA_SetRealInArray sets the index element of the real (double) array array to value.
If array is not a eVK_ArrayReal or if idx is out of range, the routine does nothing.
Example
Initialize every element of a real array to a special value.
void FillDoubleArrayWith( PA_Variable arr, double value )
{
long count, i;
count = PA_GetArrayNbElements(arr);
for( i = 1; i <= count; i++ )
PA_SetRealInArray( arr, i, value );
}
See Also
Error Handling
None.