PA_SetRealInArray

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

version 2003


PA_SetRealInArray (array; index; value)

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

PA_GetRealInArray.

Error Handling

None.


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