Application type

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11 (Modified)


Application type Long Integer

ParameterTypeDescription
This command does not require any parameters
Function resultLong IntegerNumeric value denoting the type of the application

Description

The Application type command returns a numeric value that denotes the type of 4D environment that you are running. 4D provides the following predefined constants:

ConstantTypeValue
4D local modeLong Integer 0
4D Volume DesktopLong Integer 1
4D remote modeLong Integer 4
4D ServerLong Integer 5
4D FirstLong Integer 6

Example

Somewhere in your code, other than in the On Server Startup database method, you need to check if you are running 4D Server. You can write:

   If (Application type=4D Server)
      ` Perform appropriate actions
   End if

See Also

Application version, Version type.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next