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

Home

 
4D v20.6
Version type

Version type 


 

Version type -> Function result 
Parameter Type   Description
Function result  Longint in Information about the version type (bitfield)

The Version type command returns a numeric value that denotes the type of 4D or 4D Server version that you are running. 4D provides the following predefined constants, found in the 4D Environment theme:

Constant Type Value Comment
64 bit version Longint 1
Demo version Longint 0
Merged application Longint 2 Version is an application merged with 4D Volume Desktop

Note: In current versions of 4D, the demo mode is not available.

Version type returns a value in the form of a bit field; it is necessary to use bitwise operators to interpret it (see the example).

Example  

This test lets you run different code depending on whether the version is a merged application or a database opened by 4D / 4D Server:

 If(Version type?? Merged application)
  // We are in a merged application
 Else
  // We are in a database executed by 4D
 End if



See also 

Application type
Application version

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 495

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v6
Modified: 4D v12
Modified: 4D v13.2
Modified: 4D v14

 
TAGS 

64 bits

 
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)