Error getting tags :
error 404Error getting tags :
error 404 systemVersion | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
systemVersion
Basics
Expander triangle
Type
Function
Syntax

the systemVersion systemVersion()

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the version number of the operating system.
Examples

the systemVersion
if the systemVersion is "8.6.0" then set the OSVersion to "8.6"

Additional Comments
Expander triangle

Use the systemVersion function to determine whether the current version of the operating system supports a particular feature.

Value:

The systemVersion function returns a string.

Comments:

The exact format of the systemVersion varies, depending on the operating system.

On Mac OS and OS X systems, the systemVersion returns three integers separated by decimal points. For example, on Mac OS 8.6, the systemVersion returns "8.6.0".

On Windows systems, the systemVersion returns the internal Windows version designation. The internal designations for several Windows versions are as follows:

Win version systemVersion function returns:

Windows 95 Windows 4.0

Windows 98 Windows 4.10 (may return other numbers)

Windows Me Windows 4.90 (may return other numbers)

Windows NT 4 NT 4.0

Windows 2000 NT 5.0

Windows XP NT 5.1

Windows Vista NT 6.0

Because certain sub-versions of Windows 98 and Windows Me return slightly different values for the systemVersion, you can check for these versions by testing whether the number is in a range, as in the following example:

get word 2 of the systemVersion

if it >= 4.1 and it < 4.9 then answer "Windows 98!"

Note: When running a Mac OS application in the Classic box on an OS X system, the systemVersion function returns the version number of the Classic system folder.

User Comments
Expander triangle
User thumbnail
Gerard McCarthy
StarStarStarStarStar
Apr 13, 2009
Windows 7 returns NT 6.1
User thumbnail
Richmond Mathewson
StarStarStarStarStar
Sep 15, 2010
<put the systemVersion> returns the kernel version on Linux:
e.g: Linux 2.6.32-25-generic