Syntax |
System.WindowsVersion$ |
Description |
Returns the version of the operating environment, such as "5." |
Comments |
|
Example |
This example sets the UseWin31 variable to True if the Windows version is greater than or equal to 3.1; otherwise, it sets the UseWin31 variable to False. Sub Main() If Val(System.WindowsVersion$) >= 5 Then MsgBox "You are running a Windows version 5 or later" Else MsgBox "You are running Windows version earlier than 5" End If End Sub |
See Also |
Basic.Version$ (property). |
S |