Application type

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004 (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
4th DimensionLong Integer 0
4D Runtime Volume LicenseLong Integer 1
4D Runtime InterpretedLong Integer 2
4D Runtime Single UserLong Integer 3
4D ClientLong 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   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next