version 2003
PA_ReturnDate (params; day; month; year)
| Parameter | Type | Description | |
| params | PA_PluginParameters | Parameters received in PluginMain | |
| day | short | Day of the date to be returned | |
| month | short | Month of the date to be returned | |
| year | short | Year of the date to be returned |
Description
The routine PA_ReturnDate sets the returned value of a plug-in routine to a date filled with day, month and year.
See Create a new plugin for a description of returned values accessors.
Example
The 3rd routine of a plug-in is declared for the 4D developer as:
GetDeveloperBirthday -> aDate
Called in the 4D method as
$myDate:=GetDeveloperBirthday
void PluginMain(selector, PluginParameters params)
{
switch (selector)
{
/* . . . case kInitPlugin, kDeinitPlugin . . .*/
case 1:
/* . . . code for first routine . . .*/
break;
case 2:
/* . . . code for second routine . . .*/
break;
case 3:
GetMyBirthday(params);
break;
}
}
void GetMyBirthday(PluginParameters params)
{
PA_ReturnDate(params, 1, 2, 33);
}
See Also