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►