RESUME only works at the end of an error-trapping routine, i.e. a subroutine activated by an error after an ON ERROR GOTO statement. If used elsewhere you will get the error RESUME without ERROR.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Does RESUME only work during execution mode, and NOT in Direct Mode???
as a test I tried this
10 ERROR 1
20 PRINT "TEST"
when I run this I get "NEXT without FOR in 10"... just what I'd expect
but ANY form of the RESUME statement gives "RESUME witout error"
I would have expected "RESUME 20" or "RESUME NEXT" to print "TEST"
RESUME
only works at the end of an error-trapping routine, i.e. a subroutine activated by an error after anON ERROR GOTO
statement. If used elsewhere you will get the errorRESUME without ERROR
.