version 2003
PA_GetDateVariable (aVariable; day; month; year)
| Parameter | Type | Description | |
| aVariable | PA_Variable | Variable to access | |
| day | short * | Day of aVariable | |
| month | short * | Month of aVariable | |
| year | short * | Year of aVariable |
Description
The routine PA_GetDateVariable fills the shorts pointed to by day, month, year with the values of the date embedded in the variable aVariable.
If aVariable is not a eVK_Date variable, the routine does nothing and leaves *day, *month and *year unchanged.
Example
Get a date variable.
short d = m = y = 0;
PA_GetDateVariable(aVar, &d, &m, &y);
if(d && m && y) // Ok, this is a valid date variable
{
/* . . . */
}
See Also
No reference.
Error Handling
PA_GetLastError keeps the last error that occurred before calling the routine.