Windows Version Numbers

Mark Talluto lists at canelasoftware.com
Wed Aug 13 16:44:01 EDT 2003


On Wednesday, August 13, 2003, at 04:12 AM, Scott Rossi wrote:

> After some testing, the client found that my project failed on some
> variations of Windows 98 and Windows ME (the client has a fairly 
> extensive
> QA department).  Apparently these Windows variations return 
> systemVersions
> other than 4.10 and 4.90. The way I seemed to have solved the problem 
> was to
> compare number *ranges* in the systemVersion, instead of exact values:
>
> put word 2 of the systemVersion into V
> if word 1 of the systemVersion = "Windows" then
>   switch
>     case V>=4 and V<4.1
>       put "Windows 95" into tVersion
>       break
>     case V>=4.1 and V<4.9
>       put "Windows 98" into tVersion
>       break
>     case V>=4.9
>       put "Windows ME" into tVersion
>   end switch
> else
>   switch
>     case V>=4 and V<5
>       put "Windows NT" into tVersion
>       break
>     case V>=5 and V<5.1
>       put "Windows 2000" into tVersion
>       break
>     case V>=5.1
>       put "Windows XP" into tVersion
>   end switch
> end if
>
>

Thanks for the info Scott.  I have filed this away.

Best regards,
Mark Talluto
http://www.canelasoftware.com




More information about the metacard mailing list