Menu

ERROR / RESUME

Anonymous
2017-01-07
2017-01-08
  • Anonymous

    Anonymous - 2017-01-07

    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"

     
  • Rob Hagemans

    Rob Hagemans - 2017-01-08

    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.