08-11-2020, 01:12 PM
You appear to have stumbled on a not-well-documented limitation of QBASIC: the ON...GOTO/GOSUB commands must refer to a module-level label or line number
PDS 7.1 has ON LOCAL ERROR to allow this for ON ERROR, but not for the other commands.
PDS 7.1 has ON LOCAL ERROR to allow this for ON ERROR, but not for the other commands.