Version type

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


Version type Long Integer

ParameterTypeDescription
This command does not require any parameters
Function resultLong Integer0 -> Full version
1 -> Demo Limited version

Description

The Version type command returns a numeric value that denotes the type of 4D environment version that you are running. 4D provides the following predefined constants:

ConstantTypeValue
Full VersionLong Integer 0
Demo VersionLong Integer 1


Example

Your 4D application includes some features that are not available when a demo version of the 4D environment is used. Surround these features with a test that calls Version type:

   If (Version type=Full Version)
      ` Perform appropriate operations
   Else
      ALERT("This feature is not available in the Demo version of"+" Super Management Systems™.")
   End if

See Also

Application type, Application version.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next