Major
Returns the major version number component of the project version, as configured in the project settings. Read-only.
Syntax: object.Major
- object
- required An object expression that evaluates to an _App object. In practice this is the global App object.
Major returns the first component of the four-part version number (Major.Minor.Revision.Build) as set in the twinBASIC project settings. Together with Minor, Revision, and Build, it allows the running code to inspect its own version at runtime.
Example
This example prints the full version string to the debug console.
Debug.Print "Version: " & App.Major & "." & App.Minor & "." & App.Revision & "." & App.Build