Application version

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


Application version {(*)} String

ParameterTypeDescription
**Long version number if passed, otherwise
Short version number
Function resultStringVersion 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:

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.

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.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next