OSVERSION function

Purpose: OSVERSION returns an integer which represents the running Windows operating system version.


 Syntax:

 RetVal% = OSVERSION

 Parameters:

  • RetVal% Returned integer which represents the Windows operating system version running on the computer.
    • -1: Error
    • 0: Windows 3x
    • 1: Windows 95
    • 2: Windows 98
    • 3: Windows ME
    • 4: Windows NT3
    • 5: Windows NT4
    • 6: Windows 2K
    • 7: Windows XP
    • 8: Windows .NET(or newer)