News for hackers. Stuff that matters.
Re:Gambas: Visual Basic on Linux by iforgotpassword on Sunday March 15, 2020 @09:18AM (#22583320)
That's how I've done it. Enable it before the line(s) in question, then check err.number, and add "On Error Goto 0" after that so you get the default handler again.

Usually much cleaner than jumping to somewhere else, but that had its uses too.

Re:Gambas: Visual Basic on Linux by rsynnott on Sunday March 15, 2020 @09:51AM (#22583476)
Ah. I was never actually a VB programmer, but I did have a few side-jobs porting VB apps (mostly CRUD webapps) to something more modern in the mid-noughties. My experience from that was that real world use of on error resume next was to turn it on and leave it on.