PA_IsWebProcess

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

version 2003


PA_IsWebProcess char

ParameterTypeDescription
This command does not require any parameters
Function resultchar1 if current process is a Web process, otherwise 0

Description

The routine PA_IsWebProcess returns 1 if if the current process is a Web process.

Each time a navigator calls a 4D Method (regardless of how it is done), PA_IsWebProcess will return 1 from this method (or any method called in the chain)

Example

Act differently if in a Web process.

   void MyAlert( char *message )
   {
      // This is a wrapper of ALERT
      if ( PA_IsWebProcess() )
      {
         . . . // send special HTML code for the alert
      }
      else
         PA_Alert( message );
   }

See Also

No reference.

Error Handling

PA_GetLastError always returns eER_NoErr


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