PA_GetDateVariable

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

version 2003


PA_GetDateVariable (aVariable; day; month; year)

ParameterTypeDescription
aVariablePA_VariableVariable to access
dayshort *Day of aVariable
monthshort *Month of aVariable
yearshort *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.


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