BTW there is no "On Exit" thing in QB64
There is a bunch of On Somethings but Exit is not one of them.
_Exit is a Function that tells you mainly the user wants to quit they clicked the top right X button to quit or some key combo that usually lets them escape the app.
Opps OK maybe ON _Exit... might work
https://qb64phoenix.com/qb64wiki/index.php/ON...GOTO
This is poorly worded in my opinion
NumericalExpression evaluates to a number, that codes which line label or line number to goto.
But yeah, _Exit returns numbers according to what way the user attempts to quit.
Would
On _Exit() work better?
There is a bunch of On Somethings but Exit is not one of them.
_Exit is a Function that tells you mainly the user wants to quit they clicked the top right X button to quit or some key combo that usually lets them escape the app.
Opps OK maybe ON _Exit... might work
https://qb64phoenix.com/qb64wiki/index.php/ON...GOTO
This is poorly worded in my opinion
- numericalExpression represents the line or label that the program should branch to: 1 branches to the first line or label in the list, 2 branches to the second, etc.
NumericalExpression evaluates to a number, that codes which line label or line number to goto.
But yeah, _Exit returns numbers according to what way the user attempts to quit.
Would
On _Exit() work better?
b = b + ...