PA_GetDateInArray


version 2003


PA_GetDateInArray (month; year; array; day; index)

Parameter Type Description
month short * Pointer to the month of the date
year short * Pointer to the year of the date
array PA_Variable Array to access
day short * Pointer to the day of the date
index long Index of the element to access

Description

The routine PA_GetDateInArray sets *day , *month and *year to the corresponding values of the date of the index element in the date array array . Null pointers are checked by the routine, so if, for example, you only want to read the year, you can pass null pointers to day and month.

If array is not a eVK_ArrayDate or if index is out of range, *day , *month and *year are set to 0.

Example

Get value of the current element (no error check in this sample).

   short   d, m, y;
   PA_GetDateInArray( dArray, PA_GetArrayCurrent(dArray), &d, &m, &y);

See Also

PA_SetDateInArray .

Error Handling

None.