MobileApplication.MajorVersion

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )
IntegerValue = aMobileApplication.MajorVersion

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).

Sample Code

Puts all the individual versions together to create the full version:

Var fullVersion As String
fullVersion = App.MajorVersion.ToString + "." + App.MinorVersion.ToString + "." _
+ App.BugVersion.ToString + "." + App.NonReleaseVersion.ToString