This is theoretical but fairly certain this is not implemented in PB, (and most likely other languages) just because the scope of the question.
But is it possible to do an "ON ERROR GOTO/GOSUB etc" do something?
Like I could "ON MYERROR GOTO/GOSUB"??
I understand the differences between SDK and DDT and how the compiler handles things (more or less), and how GetLastError and ERR work (for the most part), but wondered if PB allows a "ON <Insert Value> GOTO/GOSUB"?
This way in small niches I could handle my own error handling routines? (Sometimes I find documentation incorrect, or ALMOST correct, but not quite, that maybe if I could catch it, I could correct it?)
If not, then curious how "ON ERROR" works exactly? (I would assume kinda like macro's work, and "ON ERROR" is a compiler replacement that checks if there is a runtime error or not on each line of code?)
But is it possible to do an "ON ERROR GOTO/GOSUB etc" do something?
Like I could "ON MYERROR GOTO/GOSUB"??
I understand the differences between SDK and DDT and how the compiler handles things (more or less), and how GetLastError and ERR work (for the most part), but wondered if PB allows a "ON <Insert Value> GOTO/GOSUB"?
This way in small niches I could handle my own error handling routines? (Sometimes I find documentation incorrect, or ALMOST correct, but not quite, that maybe if I could catch it, I could correct it?)
If not, then curious how "ON ERROR" works exactly? (I would assume kinda like macro's work, and "ON ERROR" is a compiler replacement that checks if there is a runtime error or not on each line of code?)
Comment