Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Will my code run on a 98 machine follow-up

If you are not sure, do this first to check:

Dim strOS As String = System.Environment.OSVersion.ToString()

Dim strWin98 As String = "Microsoft Windows 98"

Dim intReturn As Integer

intReturn = strOS.IndexOf(strWin98)

If intReturn = -1 Then

' safe to use the namespace. On Windows 98 SE, OSVersion would return

' "Microsoft Windows 98.4.10.67766446.0"

End If

 

No Comments