4D v15

Application version

Home

 
4D v15
Application version

Application version  


 

 

Application version {( buildNum {; *} )} -> Function result

Originally introduced in 4D v14 R2

To support the new 4D "R" releases, the values returned by the Application version command ("4D Environment" theme) have been updated.

Basically, in the case of an "R" version, the "R" number will be the release number and the revision number will always be "0". This principle will be used for both long and short version numbers.

Example for a short version number:

 value:=Application version // short version number

VersionValue returned
4D v14 R2"1420"
4D v14 R3"1430"
4D v14.1"1401"First bug fix revision of 4D v14
4D v14.2"1402"Second bug fix revision of 4D v14

Example for a long version number:

 value:=Application version(*) // long version number

VersionValue returned
4D v14 beta R2"B0011420"
4D v14 final R3"F0011430"
4D v14.1 beta"B0011401"

Example  

You want to use the application's short version value returned by the command to display the 4D application release name. You can write:

 C_LONGINT($Lon_build)
 C_TEXT($Txt_info;$Txt_major;$Txt_minor;$Txt_release;$Txt_version)
 
 $Txt_version:=Application version($Lon_build)
 
 $Txt_major:=$Txt_version[[1]]+$Txt_version[[2]] //version number, e.g. 14
 $Txt_release:=$Txt_version[[3]] //Rx
 $Txt_minor:=$Txt_version[[4]] //.x
 
 $Txt_info:="4D v"+$Txt_major
 If($Txt_release="0") //4D v14.x
    $Txt_info:=$Txt_info+Choose($Txt_minor#"0";"."+$Txt_minor;"")
 
 Else //4D v14 Rx
    $Txt_info:=$Txt_info+" R"+$Txt_release
 End if

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (standard edition) ( 4D v15)