Development > Developer Blog/Q&A

Could ON ERROR be made more flexible?

(1/1)

Clippy:
ON ERROR SUBprocedure

GOTO creates the problem of adding a linelabel and a procedure that should be after the end of code, but before SUB procedures. You cannot $INCLUDE GOTO or GOSUB code at end of program where that would be the easiest to automate by PRINT # with APPEND so that SUBs and INCLUDE can be added.

ON ERROR does work in a SUB and can refer to a GOTO line label in the main program, but this would make it better.

PS: Don't remember if you knew that Qbasic allowed you to APPEND DATA to a BAS file because it moved all SUB procedures to the end of the file. I see that is allowed now, but Data Labels causes problems now. Pete wants to not allow DATA after SUBs. I think it should allow DATA there.  Unless you want to have the IDE move them.

PPS: Looks like you are doing a good job on slimming QB64 down!  Hard to imagine Winter when it is 94 here! ;)

Galleon:
I like this idea.

Added to log.

Navigation

[0] Message Index

Go to full version