DesktopApplication.MajorVersion
From Xojo Documentation
Read-Only Property (As Integer )
IntegerValue = aDesktopApplication.MajorVersion
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
The version to be incremented when the release includes many large new features.
Notes
This can only be set in the IDE, but you can read the value in your code.
Typically version numbers are written as 1.2.3.4 (MajorVersion.MinorVersion.BugVersion.NonReleaseVersion).
This value appears in the Properties window of the Desktop Explorer on Windows but does not appear in the Get Info window on MacOS or on Linux.
On Windows valid values are between 0 to 255. |
Sample Code
Puts all the individual versions together to create the full version: