version 11 (Modified)
Application type Long Integer
| Parameter | Type | Description | ||||
| This command does not require any parameters | ||||||
| Function result | Long Integer | Numeric 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:
| Constant | Type | Value |
| 4D local mode | Long Integer | 0 |
| 4D Volume Desktop | Long Integer | 1 |
| 4D remote mode | Long Integer | 4 |
| 4D Server | Long Integer | 5 |
| 4D First | Long 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.