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
Divers
Thread ID:
00315317
Message ID:
00315319
Vues:
28
>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

Don't you mean OS() ?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform