On Error Gosub
The ON ERROR statement has been augmented to support GOSUB in addition to GOTO and SYSTEM. This is a very important feature because it permits multiple nested error processes and ON FKEY GOSUB label-reference. Programmers are no longer limited to the simple RETRY or CONTINUE to return from an interrupt.
- The keyboard buffer is cleared by ON error GOSUB interrupts.
- By default, BR checks for Fkey interrupts every eight statements. Use the BREAK configuration statement to vary this.
- If an ON FKEY GOSUB / GOTO statement catches an interrupt during a SLEEP operation the Sleep is immediately terminated. In the case of GOSUB, a RETURN resumes with the clause following the Sleep.