Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

ERDEV

Returns an integer error code from the last device that declared an error.

Syntax

ERDEV

Comments

The MS-DOS critical error handler sets the value for ERDEV. The lower byte contains the MS-DOS error code (0 through 12). The upper byte contains device attribute information.

Example

ON ERROR GOTO Handler
...
Handler:
  PRINT "Error accessing device "; ERDEV$
  PRINT "Error status code "; ERDEV
  ...

See Also