NNNNNNNNnnnnnnnnnnooooooooooooooooooo!!!!!
It's not absorbing an error; it's absorbing all errors. Don't get me wrong, I can see the argument for absorbing the occasional error you genuinely know you can ignore but you ought to know what the error is first. Absorbing a "File Not Open" Error when closing a file would be a good example. But On Error Resume Next is saying, I don't care what error occurs, I'm going to ignore it. The very least you should do in VB6 is use On Error Goto, check the error code and issue a resume next from the error handler if it's an error you really don't care about.
And just 'cause I can't resist it:-
There was an On Error Resume Next
Which made some developers quite vexed
Shaggy's not bothered
but the errors hovered
and came back to haunt Funky Dext...
... er





Reply With Quote
