The second form, resume next causes execution to resume with the statement at the beginning of the line immediately following the one where the error occurred.
An error recovery routine must lie outside any subprogram even if the routine is to trap errors within a subprogram. The resume statement may not be used within a subprogram. In general, a line number or label reference outside any subprogram must refer to a line also outside any subprogram. Resuming to a particular line number or label is an exception: no such restriction exists. The error recovery routine is responsible for seeing that execution resumes within the subprogram (if any) which caused the error lest the control structure of the program be corrupted. This problem can not occur with resume 0 or resume next.
A moduleís error handling routines are private to the module. The possibility (and opportunity) exists to have an error handling routine in each of several modules concurrently identified and prepared to execute in case of error. Transfer of control between modules due to error handling is impossible.
10 on error goto 100 . . 100 if (err = 13) and (erl = 50) then_ print "TRY AGAIN" : resume 30
A "NO RESUME" error will occur when after having trapped an error, the program attempts to terminate normally without having executed a resume statement.
from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber