Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

SystemInfo.WinMajorVersion

Returns the major version number of the operating system.

Component Version macOS Windows Linux Server iOS SDK
SystemInfo 2.8 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "SystemInfo.WinMajorVersion" )

Parameters

none

Result

Returns the major version number.

Description

Returns the major version number of the operating system.
Returns 5 on Windows 2000/XP and 6 on Windows Vista/7/8.

Examples

Show window version:

Show Custom Dialog [ "Windows Version" ; MBS( "SystemInfo.WinMajorVersion" ) & "." & MBS( "SystemInfo.WinMinorVersion" ) ]

See also

Created 18th August 2014, last changed 15th November 2020


SystemInfo.WinCSDVersion - SystemInfo.WinMinorVersion

Feedback: Report problem or ask question.