Constant
XojoVersion
Description
Reports the major and minor version number of Xojo.
Usage
result = XojoVersion
Part |
Type |
Description |
---|---|---|
result |
Constant indicating the major and minor version number. |
Notes
The format is the four digit year of the release followed by a period followed by the release number.
You can use XojoVersion in an #if statement to determine whether a use is running a particular version of Xojo. Based on the result, you conditionally compile code that is available only for that version.
Sample code
The following line displays the version of Xojo being used:
MessageBox("You're using version " + XojoVersion.ToString)
The following includes code only for applications built using Xojo version 2017 Release 1 or above.
#If XojoVersion > 2017 Then
' include code here
#Endif
Compatibility
All project types on all supported operating systems.
See also
DebugBuild, XojoVersionString, TargetBigEndian, TargetDesktop, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWindows, TargetX86 constants; #If...#Endif statement.