Return values from the OS() command. 
Author Message
 Return values from the OS() command.

Is there a list of the possible return values from the OS
() command?


Wed, 19 May 2004 00:31:42 GMT  
 Return values from the OS() command.
Gary,
While I don't know about OS(), I've used and expanded on the following for
OS(1) since VFP 3.0.

lcPlatform = "(Unknown)"
lcOS = OS(1)
DO CASE
  CASE "5.01" $ lcOS
     lcPlatform = "WINXP"
  * CASE "NT" $ lcOS AND "5.0" $ lcOS && Beta Only
    *  lcPlatform = "WIN2000"
  CASE "5.0" $ lcOS
     lcPlatform = "WIN2000"
  CASE "NT" $ lcOS
     lcPlatform = "WINNT"
  CASE "4.0" $ lcOS OR "3.9" $ lcOS
     lcPlatform = "WIN95"
  CASE "4.1" $ lcOS
     lcPlatform = "WIN98"
  CASE "4.9" $ lcOS
     lcPlatform = "WINME"
  CASE "3." $ lcOS
     lcPlatform = "WIN31"
ENDCASE

? lcPlatform

Rick


Quote:
> Is there a list of the possible return values from the OS
> () command?



Wed, 19 May 2004 02:15:12 GMT  
 Return values from the OS() command.
http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~VFP
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP7
Quote:

> Is there a list of the possible return values from the OS
> () command?



Wed, 19 May 2004 02:41:25 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. procedure return value not numeric if procedure not include return command

2. OS() returns

3. What Does OS() Return Under Each Platform?

4. NT value for OS()

5. How to set OS environment variable value?

6. OS() reports incorrect OS version under VFP 5.0a

7. REQUERY() return value

8. Form return values

9. Return Value As Array

10. Returning a value to DOS

11. returning values from a form

12. What happens to return value VFP6

 

 
Powered by phpBB® Forum Software