PA_GetTimeParameter

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

version 2003


PA_GetTimeParameter (params; index) long

ParameterTypeDescription
paramsPA_PluginParametersParameters received in PluginMain
indexshortIndex of the parameter in params
Function resultlongValue (of type long) of the index parameter

Description

The routine PA_GetTimeParameter returns the value of the index parameter in params. As in 4D, the time type is basically the same as long; this routine returns a long, as PA_GetLongParameter does.

See Create a new plugin for a description of parameter accessors.

NOTE:

The first parameter starts at index 1

Example

A plug-in routine is declared for the 4D developer as:

PluginRoutine(adate;anArray;aTime)

The 3rd parameter (the time) is retrieved with this code:

   aLong = PA_GetTimeParameter(params, 3);

See Also

Create a new plugin.

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