How can you reset the behavior of ONERR in AppleSoft BASIC?

2018-05-16 17:26:26

In an Applesoft BASIC program you can use the standard MS-BASIC ONERR statement to perform error trapping. For example:

10 ONERR GOTO 100

20 POKE 0, 400 : REM INVALID VALUE WILL CAUSE ERROR

30 END

100 PRINT "ERROR!"

Of course, if you want to continue after the error you can use the RESUME statement. But the question here is what if you wanted to disable ONERR checking and go back to the default behavior of having the interpreter crash with an error message?

I would have hoped that simply an ONERR statement with no arguments or even setting the 'goto' to some specific line number would do it, but I haven't been able to find this one. Hopefully it applies to all MS-BASIC derivatives as well?