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:
00315350
Vues:
26
Andrew,

Win2K is new and therefore there was no way to anticipate it in your code. My method of handling this type of problem is to use a DO CASE construct where I can have an OTHERWISE statement to cover unanticipated situations;


DO CASE
CASE "NT" $ OS()
* NT Specific stuff
CASE "95" $ OS()
* Win 95 specific stuff
CASE "98" $ OS()
* Win 98 specific stuff
OTHERWISE
* Generic code that works for other OS's
ENDCASE


If it is necessary to write additional code for new OS's they simply become another CASE in teh construct.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform