PA_ReturnDate

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

version 2003


PA_ReturnDate (params; day; month; year)

ParameterTypeDescription
paramsPA_PluginParametersParameters received in PluginMain
dayshortDay of the date to be returned
monthshortMonth of the date to be returned
yearshortYear 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

Create a new plugin.


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