Build: Integer;
The Build property returns the platform build number.
If the version number is 10.5.7432, the Build property returns the 7432 value.
To execute the example, add a link to the Host system assembly.
Sub UserProc;
Var
Ver: IApplicationVersion;
Begin
Ver := New ApplicationVersion.Create;
// Display information about the current platform build in the console
Debug.WriteLine("Version description - " + Ver.VersionDescription);
Debug.WriteLine("Build number - " + Ver.Build.ToString);
Debug.WriteLine("Debug version - " + Ver.Debug.ToString);
Debug.WriteLine("Full version description - " + Ver.Description);
Debug.WriteLine("Release version - " + Ver.IsRelease.ToString);
Debug.WriteLine("Major version build number - " + Ver.Major.ToString);
Debug.WriteLine("Maximum number of the current release build - " + Ver.MaxReleaseBuild.ToString);
Debug.WriteLine("Minor version build number - " + Ver.Minor.ToString);
Debug.WriteLine("Minimum number of the current release build - " + Ver.MinReleaseBuild.ToString);
Debug.WriteLine("Non-tested build - " + Ver.PrivateBuild.ToString);
Debug.WriteLine("Update number - " + Ver.QFE.ToString);
Debug.WriteLine("Short version description - " + Ver.ShortDescription);
End Sub UserProc;
After executing the example the development environment console displays all information about the current platform build, for example:
Version description - Master
Build number - 55863
Debug version - False
Full version description - Release 10.5.55863.863 Master x64
Release version - True
Major version build number - 9
Maximum number of the current release build - 55999
Minor version build number - 2
Minimum number of the current release build - 55000
Non-tested build - False
Update number - 863
Short version description - 10.5.55863.863 Master x64
See also: