version 2004 (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 |
| 4th Dimension | Long Integer | 0 |
| 4D Runtime Volume License | Long Integer | 1 |
| 4D Runtime Interpreted | Long Integer | 2 |
| 4D Runtime Single User | Long Integer | 3 |
| 4D Client | 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.