This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
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 Value Comment
4D Desktop 3
4D Local mode 0
4D Remote mode 4
4D Server 5
4D Volume desktop 1
tool4d 6

For more information, see tool4D on developer.4d.com.

Note: 4D Desktop incorporates certain deployment offers, such as, for example,"4D SQL Desktop".

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

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Modified: 4D v11 SQL

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)