PA_ReturnTime

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

version 2003


PA_ReturnTime (params; value)

ParameterTypeDescription
paramsPA_PluginParametersParameters received in PluginMain
valuelongTime to be returned (in seconds)

Description

The routine PA_ReturnTime sets the returned value of a plug-in function to value, received by the calling 4D Method.

See Create a new plug-in for a description of returned values accessors.

Example

The 2nd routine of a plug-in is declared for the 4D developer as:

   GetATime -> aTime

Called in the 4D method as:

   $myTime:=GetATime
   void PluginMain(selector, PluginParameters params)
   {
      switch (selector)
      {
         /* . . . case kInitPlugin, kDeinitPlugin . . .*/
         case 1:
            /* . . . code for first routine . . .*/
            break;
         case 2:
            GetATimeRoutine(params);
            break;
      }
   }

   void GetATimeRoutine(PluginParameters params)
   {
      PA_ReturnDate(params,  (11*3600) + 30*(60));  // return 11:30:00
   }

See Also

Create a new plugin.

Error Handling

None.


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