4D v14.3

Application type

Home

 
4D v14.3
Application type

Application type 


 

Application type -> Function result 
Parameter Type   Description
Function result  Longint in Numeric value denoting the type of the application

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
_O_4D First Longint 6
4D Local mode Longint 0
4D Remote mode Longint 4
4D Server Longint 5
4D Volume desktop Longint 1

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

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 494

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

Application version
Version type

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)