Skip to main content
Version: 21 R4 BETA

Application type

Application type : Integer

ParameterTypeDescription
Function resultInteger←Numeric value denoting the type of the application
History
ReleaseChanges
11 SQLModified
<6Created

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:

ConstantValueComment
4D Desktop3
4D Local mode0
4D Remote mode4
4D Server5
4D Volume desktop1
tool4d6For 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​

Command number494
Thread safeyes