version 6.0
Application version {(*)} String
Parameter | Type | Description | |
* | * | Long version number if passed, otherwise | |
Short version number | |||
Function result | String | Version number encoded string |
Description
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:
Characters | Description |
1-2 | Version number |
3 | Update number |
4 | Revision 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:
Characters | Description |
1 | "F" denotes a final version |
"B" denotes a beta version | |
Other characters denote an 4D internal version | |
2-3-4 | Internal 4D compilation number |
5-6 | Version number |
7 | Update number |
8 | Revision number |
Example: The string "B0120602" would stand for the Beta 12 of version 6.0.2.
Examples
1. 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]])
2. 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
See Also
Application type, Version type.