08-16-2024, 07:16 PM
I noticed that ON ERROR line labels can't be placed within subroutines:
SUB MySub()
ON ERROR GOTO ErrHandler
... code
ErrHandler:
END SUB
Is this normal? I'm using QB64pe v3.13.1
The Wiki states ON ERROR can be used in Subs/Functions but no mention of label being required to be outside of the Sub/Function.
SUB MySub()
ON ERROR GOTO ErrHandler
... code
ErrHandler:
END SUB
Is this normal? I'm using QB64pe v3.13.1
The Wiki states ON ERROR can be used in Subs/Functions but no mention of label being required to be outside of the Sub/Function.