<div class="meta" robots="noindex">

</div>

Constant

# RBVersion

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2013r1. Please use `XojoVersion</api/language/xojoversion>` as a replacement.

</div>

## Description

Reports the major and minor version number of Xojo.

## Usage

*result*=**RBVersion**

| Part   | Type                             | Description                                             |
|--------|----------------------------------|---------------------------------------------------------|
| result | `Double</api/data_types/double>` | 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 <span class="title-ref">RBVersion</span> in an `#if</api/compiler_directives/if...endif>` 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:

``` xojo
MsgBox("You're using version " + Str(RBVersion))
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The following includes code only for applications built using Xojo version 2013 Release 1 or above.

``` xojo
#If RBVersion > 2013 Then
  //include code here
#EndIf
```

## Compatibility

All project types on all supported operating systems.

## See also

`DebugBuild</api/compiler_directives/debugbuild>`, `XojoVersion</api/language/xojoversion>`, `XojoVersionString</api/language/xojoversionstring>`, `TargetBigEndian</api/compiler_directives/targetbigendian>`, `TargetDesktop</api/compiler_directives/targetdesktop>`, `TargetLinux</api/compiler_directives/targetlinux>`, `TargetLittleEndian</api/compiler_directives/targetlittleendian>`, `TargetMachO</api/compiler_directives/targetmacho>`, `TargetMacOS</api/compiler_directives/targetmacos>`, `TargetWindows</api/compiler_directives/targetwindows>`, `TargetX86</api/compiler_directives/targetx86>` constants; `＃If...＃EndIf</api/compiler_directives/if...endif>` statement.
