Kbase P108232: How OPSYS function works?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  20/01/2010 |
|
Status: Verified
GOAL:
How OPSYS function works?
GOAL:
What are the valid string values returned by the OPSYS statement in an OpenEdge session
FACT(s) (Environment):
OpenEdge 10.x
Progress 9.x
FIX:
Identifies the operating system being used, so that a single version of a procedure can work differently under different operating systems. Returns the value of that operating system. Valid values are UNIX and WIN32.
The Progress 4GL supports an override option that enables applications that need to return the value of MS-DOS for all Microsoft operating systems to do so. For example, if you do not want the value WIN32 returned when either Windows 95 or Windows NT operating systems are recognized, you can override this return value by defining the Opsys key in the Startup section of the current environment, which may be in the registry or in an initialization file. If the Opsys key is located, the OPSYS function returns the value associated with the Opsys key on all platforms.