Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VERSION() under Win2K
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VERSION() under Win2K
Miscellaneous
Thread ID:
00315317
Message ID:
00315317
Views:
75
Hi folks,

Just a heads up. Although Win2K is based on NT technology, it doesn't return NT anywhere to the VERSION() function.

VERSION() returns Windows 5.00 on my Win2K RC2 machine with VFP6 SP3.

This broke some of my bracketted code that does stuff like:
if "NT" $ VERSION()
  ... do NT-specific stuff
else
  ... do Win 9x-specific stuff
endif
I had to change it to
if "NT" $ VERSION() or "5.0" $ VERSION()
  ... do NT-specific stuff
else
  ... do Win 9x-specific stuff
endif
Cheers,

Andrew


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Next
Reply
Map
View

Click here to load this message in the networking platform