version 2003
PA_SetDateInArray (array; index; newDay; newMonth; newYear)
| Parameter | Type | Description | |
| array | PA_Variable | Array to access | |
| index | long | Index of the element to access | |
| newDay | short | New day of the element index | |
| newMonth | short | New month of the element index | |
| newYear | short | New 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
Error Handling
None.