08-17-2024, 11:58 AM
QB 7.1 has an ON LOCAL ERROR command which deals with this, you use it in a SUB/FUNCTION and it jumps to a label in that subprocedure. When you exit the subprocedure, the local error handler is removed and the previous error handler (the global ON ERROR or another ON LOCAL ERROR in the caller) comes back into effect.
Possibly something to adapt into QB64 at some point.
Possibly something to adapt into QB64 at some point.