PA_SetIntegerInArray


version 2003


PA_SetIntegerInArray (array; index; value)

Parameter Type Description
array PA_Variable Array to access
index long Index of the element to access
value short New value for element index

Description

The routine PA_SetIntegerInArray sets the index element of the integer array array to value .

If array is not a eVK_ArrayInteger or if index is out of range, the routine does nothing.

Example

Initialize every element of an integer array to a special value.

   void FillIntegerArrayWith( PA_Variable arr, short value )
   {
      long   count, i;
      count = PA_GetArrayNbElements( arr );
      for( i = 1; i <= count; i++ )
         PA_SetIntegerInArray( arr, i, value );
   }

See Also

PA_GetIntegerInArray .

Error Handling

None.