GetGuiVersion Function

Action

Returns the version number of the graphical user interface (GUI) on the current machine.

Syntax

sVersion = GetGuiVersion ([hMachine])
Variable Description
sVersion The version number of the GUI. STRING.
hMachine Optional: Handle of the machine for which you want the GUI version. When only one machine is connected or when you want the GUI version for the current machine, you can omit this argument. HMACHINE.

Notes

GetGuiVersion returns a text string that corresponds to the version number of the GUI, with the major version number to the left of the decimal point, and the minor version number to the right of the decimal point. For example, for Microsoft Windows 3.1, the value is "3.1".

Example

STRING sGUIName, sGUIVersion
sGUIName = GetGuiName()
sGUIVersion = GetGuiVersion()
Print("The present GUI is {sGUIName}{sGUIVersion}")