PA_GetDateInArray

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

version 2003


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

ParameterTypeDescription
monthshort *Pointer to the month of the date
yearshort *Pointer to the year of the date
arrayPA_VariableArray to access
dayshort *Pointer to the day of the date
indexlongIndex 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.


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