OPSYS function
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".
Syntax
ExampleThis procedure produces a listing of the files in your current directory. The OPSYS function determines which operating system you are running, and uses the appropriate operating system command to produce the directory listing. The example shows the possible return values.
NoteABL 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.
See alsoDOS statement, UNIX statement, { } Preprocessor name reference
OpenEdge Release 10.2B
|