Constant
RBVersion
Warning
This item was deprecated in version 2013r1. Please use XojoVersion as a replacement.
Description
Reports the major and minor version number of Xojo.
Usage
result=RBVersion
Part |
Type |
Description |
---|---|---|
result |
Constant indicating the major and minor version number. |
Notes
Version 20*xx* returns a number of the form 20*xx*.*yy*, where yy is the Release number.
When you build your application, you can enter version information about your application in the App class's Properties pane. This information is stored in your application's 'vers' resource. For more information, see the chapter on building applications in the User's Guide.
You can use RBVersion 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:
MsgBox("You're using version " + Str(RBVersion))
The following includes code only for applications built using Xojo version 2013 Release 1 or above.
#If RBVersion > 2013 Then
//include code here
#Endif
Compatibility
All project types on all supported operating systems.
See also
DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetDesktop, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWindows, TargetX86 constants; #If...#Endif statement.