4D v12.4Version type |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v12.4
Version type
|
Version type -> Function result | ||||||||
Parameter | Type | Description | ||||||
Function result | Longint |
![]() |
0 = 32-bit full version 1 = 32-bit demo version, 2 = 64-bit version | |||||
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:
Constant | Type | Value |
64 bit Version | Longint | 2 |
Demo Version | Longint | 1 |
Full Version | Longint | 0 |
Note: 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).
Your 4D application includes some features that are not available when a 32-bit version of the 4D environment is used. Surround these features with a test that calls Version type:
If(Version type?? Version 64 bits)
//Perform appropriate operations
Else
//Code for 32-bit version
End if
Product: 4D
Theme: 4D Environment
Number:
495
Created: 4D v6
Modified: 4D v12
Application type
Application version
64 bits***