qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ERDEV, ERDEV$ Functions
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Returns an error code from the last device that generated a critical error
 (ERDEV); returns the name of the device that generated the error (ERDEV$).
 
    ■ ERDEV     Low byte of the value returned contains the MS-DOS error
                code; high byte contains device-attribute information
 
    ■ ERDEV$    Returns a string containing:
                • 8-byte character device name if the error is on a character
                  device, such as a printer
                • 3-byte block name (COM) if a communications port
                  experiences a timeout
                • 2-byte block device name (A:, B:, and so on) if the device
                  is not a character device
 
 See Also
    Device I/O Commands              Error/Event Trapping Summary