3 ms·
"On Error Resume Next" lets you simply skip past errors Is that very differently from "except: pass" in Python, though? Most languages allow you to skip past e
by icebraining 12y ago
"On Error Resume Next" lets you simply skip past errors
Is that very differently from "except: pass" in Python, though? Most languages allow you to skip past errors, the problem with VB was the culture of the users who didn't treat that as a red flag, not the language feature itself.
- roywiggins 12y agoOn Error Resume Next is actually weirder than an empty error handler. If Python errors halfway through a try/except block, it will skip the rest of the block. If you On Error Resume Next, VB will literally just proceed to the next line and keep executing. And since you don't need to indent the block that comes after On Error, it's easy to miss that line...