PA_SetLongintInArray

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

version 2003


PA_SetLongintInArray (array; index; value)

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


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