# Major
{: .no_toc }

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*.*Build*.*Revision*), as set in [Project Settings](/tB/IDE/Project-Settings.md#majorminorbuildrevision). Together with [**Minor**](/tB/Packages/AppGlobalClassObject/_App/Minor.md), [**Revision**](/tB/Packages/AppGlobalClassObject/_App/Revision.md), and [**Build**](/tB/Packages/AppGlobalClassObject/_App/Build.md), it allows the running code to inspect its own version at runtime.

### Example

This example prints the full version string to the debug console.

```tb check_build
Debug.Print "Version: " & App.Major & "." & App.Minor & "." & App.Build & "." & App.Revision
```

### See Also

- [Minor](/tB/Packages/AppGlobalClassObject/_App/Minor.md) property
- [Revision](/tB/Packages/AppGlobalClassObject/_App/Revision.md) property
- [Build](/tB/Packages/AppGlobalClassObject/_App/Build.md) property
- [EXEName](/tB/Packages/AppGlobalClassObject/_App/EXEName.md) property
