4D v13.4

Application version

Home

 
4D v13.4
Application version

Application version 


 

Application version {( buildNum {; *} )} -> Function result 
Parameter Type   Description
buildNum  Longint in Build number
Operator in Long version number if passed, otherwise Short version number
Function result  String in Version number encoded string

The Application version command returns an encoded string value that expresses the version number of the 4D environment you are running.

- If you do not pass the optional * parameter, a 4-character string is returned, formatted as follows:
CharactersDescription
1-2Version number
3Update number
4Revision number

Example: The string "0600" stands for version 6.0.0.

- If you pass the optional * parameter, an 8-character string is returned, formatted as follows:
CharactersDescription
1"F" denotes a final version
"B" denotes a beta version
Other characters denote an 4D internal version
2-3-4Internal 4D compilation number
5-6Version number
7Update number
8Revision number

Example: The string "B0120602" would stand for the Beta 12 of version 6.0.2.

The Application version command can return additional information in the optional buildNum parameter: the build number of the current version of the 4D application. This is an internal compilation number that can be used for versioning or when contacting the 4D Technical Services department.

Note: In the case of applications that are compiled and merged with 4D Volume License, the build number returned is not significant. In this context, version information is managed by the developer.

This example displays the 4D environment version number:

 $vs4Dversion:=Application version
 ALERT("You are using the version "+String(Num(Substring($vs4Dversion;1;2)))+"."+
 $vs4Dversion≤3≥+"."+$vs4Dversion≤4≥)

This example tests to verify that you are using a final version:

 If(Substring(Application version(*);1;1)#"F")
    ALERT("Please make sure you are using a Final Production version of 4D with this database!")
    QUIT 4D
 End if

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 493

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v6
Modified: 4D v11 SQL Release 5

 
SEE ALSO 

Application type
Version type