PA_SetLongintInArray


version 2003


PA_SetLongintInArray (array; index; value)

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

Description

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

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

Example

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

   void FillLongintArrayWith( PA_Variable arr, long value )
   {
      long   count, i;
      count = PA_GetArrayNbElements(arr);
      for ( i = 1; i <= count; i++ )
         PA_SetLongIntInArray( arr, i, value );
   }

See Also

PA_GetLongintInArray .

Error Handling

None.