Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OS(1) and NT
Message
From
09/11/1998 13:13:18
 
 
To
06/11/1998 16:05:25
Quoc-Buu Truong
Black & McDonald Limited
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00155372
Message ID:
00155823
Views:
23
Here is the way I do it. NT makes an enviroment variable called OS that contains "Windows_NT".

DO CASE
CASE 'NT' $ GETENV('OS')
&& winnt
CASE '9' $ OS(1)
&& 95
OTHERWISE
&& 3.1
ENDCASE


Charles

>I'd like to know if there is another way to tell if your FPW 2.6 app is running under NT since the Foxpro built-in function OS(1) always returns the string "Windows 3.10" which is really misleading.
>Thanks in advance.
>
>Quoc-Buu.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform