Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VERSION() under Win2K
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
VERSION() under Win2K
Divers
Thread ID:
00315317
Message ID:
00315317
Vues:
72
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform