Explanation
ERDEV, ERDEV$ Functions
ERDEV returns an error code from the last device that generated a critical error. ERDEV$ returns the name of the device that generated the error.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.