User Tools

Site Tools


prop_windowsversion.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:WindowsVersion ====== Previous pageReturn to chapter overviewNext page

Returns a String that describes the Windows version information.

The runtime library returns the following information:

Windows <;version> [<;category> | <;edition>] [ServicePack] Build Number

The Service Pack value is present only if applicable

syntax:

SYSTEM{PROP:WindowsVersion,[index#]} ! - The Clarion description of the Windows version

The SYSTEM{PROP:WindowsVersion} supports passing an optional index parameter from 1 to 10:

SYSTEM{PROP:WindowsVersion,1} ! - The Clarion description of the Windows version  (same value as without an index parameter)

SYSTEM{PROP:WindowsVersion,2}   ! - Description of Windows version from Windows itself

SYSTEM{PROP:WindowsVersion,3}   ! - Major version number

SYSTEM{PROP:WindowsVersion,4} ! - Minor version number

SYSTEM{PROP:WindowsVersion,5}  ! - Build number

SYSTEM{PROP:WindowsVersion,6}  ! - Service pack number

SYSTEM{PROP:WindowsVersion,7}  !- Returns '1' if program is running on 64 bit Windows, otherwise an empty string

SYSTEM{PROP:WindowsVersion,8}  ! - Returns '1' if program is running on a server version of Windows, otherwise an empty string

SYSTEM{PROP:WindowsVersion,9}  ! - Equate value representing the Windows version (separate for client and server versions)

SYSTEM{PROP:WindowsVersion,10} ! - Equate value representing the Windows edition

The following equates are defined in EQUATES.CLW

! Codes for Windows versions returned by SYSTEM {PROP:WindowsVersion,9}

WINVERSION:UNKNOWN              EQUATE(0)

WINVERSION:W95                          EQUATE(1)

WINVERSION:W95OSR2              EQUATE(2)

WINVERSION:W98                          EQUATE(3)

WINVERSION:W98SE                EQUATE(4)

WINVERSION:ME                          EQUATE(5)

WINVERSION:NT3_5                        EQUATE(6)

WINVERSION:NT4                          EQUATE(7)

WINVERSION:W2000                        EQUATE(8)

WINVERSION:XP                          EQUATE(9)

WINVERSION:VISTA                        EQUATE(10)

WINVERSION:WINDOWS7            EQUATE(11)

WINVERSION:WINDOWS8            EQUATE(12)

WINVERSION:WINDOWS8_1          EQUATE(13)

WINVERSION:WINDOWS10            EQUATE(14)

WINVERSION:SRV_NT3_5            EQUATE(1)

WINVERSION:SRV_NT4              EQUATE(2)

WINVERSION:SRV2000              EQUATE(3)

WINVERSION:HOMESERVER          EQUATE(4)

WINVERSION:SRV2003              EQUATE(5)

WINVERSION:SRV2003R2            EQUATE(6)

WINVERSION:SRV2008              EQUATE(7)

WINVERSION:SRV2008R2            EQUATE(8)

WINVERSION:SRV2012              EQUATE(9)

WINVERSION:SRV2012R2            EQUATE(10)

!WINVERSION:SRV2016            EQUATE(11)

! Codes for editions of Windows versions returned by SYSTEM {PROP:WindowsVersion,10}

WINEDITION:UNKNOWN              EQUATE(0)

WINEDITION:STARTER              EQUATE(1)

WINEDITION:HOME                        EQUATE(2)

WINEDITION:HOME_BASIC          EQUATE(3)

WINEDITION:HOME_PREMIUM        EQUATE(4)

WINEDITION:STANDARD            EQUATE(5)

WINEDITION:PROFESSIONAL        EQUATE(6)

WINEDITION:BUSINESS            EQUATE(7)

WINEDITION:ULTIMATE                    EQUATE(8)

WINEDITION:ENTERPRISE          EQUATE(9)

WINEDITION:ADVANCED            EQUATE(10)

WINEDITION:WEB                          EQUATE(11)

WINEDITION:TABLETPC            EQUATE(12)

WINEDITION:MEDIACENTER          EQUATE(13)

WINEDITION:DATACENTER          EQUATE(14)

WINEDITION:ESSENTIAL            EQUATE(15)

WINEDITION:SMALLBUSINESS        EQUATE(16)

WINEDITION:FOUNDATION          EQUATE(17)

WINEDITION:STORAGE              EQUATE(18)

Read only. Available for SYSTEM only.

Example:

GLO:WindowsVersion = SYSTEM{PROP:WindowsVersion}

prop_windowsversion.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1