PA_SetIntegerInArray

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_SetIntegerInArray (array; index; value)

ParameterTypeDescription
arrayPA_VariableArray to access
indexlongIndex of the element to access
valueshortNew 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.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next