Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VERSION() under Win2K
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00315317
Message ID:
00315350
Views:
27
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform