Trap error or 'Resume Next'

Posted by Craig Johnston on Stack Overflow See other posts from Stack Overflow or by Craig Johnston
Published on 2010-05-03T10:46:05Z Indexed on 2010/05/03 10:48 UTC
Read the original article Hit count: 345

Filed under:
|
|

I realise this is an older programming environment, but I have to clean up some VB6 code and I am finding that most of it uses:

Resume Next

What is the general consensus about the use of Resume Next?

Surely, if there is an error, you would want the app to stop what it was doing, rollback any data changes, and inform the user of the error, rather than just resuming.

When is it good idea to use Resume?

© Stack Overflow or respective owner

Related posts about error-handling

Related posts about resume