PA_SetDateInArray

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

version 2003


PA_SetDateInArray (array; index; newDay; newMonth; newYear)

ParameterTypeDescription
arrayPA_VariableArray to access
indexlongIndex of the element to access
newDayshortNew day of the element index
newMonthshortNew month of the element index
newYearshortNew year of the element index

Description

The routine PA_SetDateInArray sets the fields of the index element of the date array array to newDay, newMonth, and newYear.

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

Example

Initialize every element of a real array to a special value.

   void FillDateArrayWith( PA_Variable arr,  PA_Date value )
   {
      long   count, i;
      count = PA_GetArrayNbElements( arr );
      for( i = 1; i <= count; i++ )
         PA_SetDateInArray( arr, i, &value.fDay, &value.fMonth, &value.fYear );
   }

See Also

PA_GetDateInArray.

Error Handling

None.


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