Logo 
Search:

MS Office Forum

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds

Resume Next

  Asked By: Ira    Date: Nov 30    Category: MS Office    Views: 627
  

As we all know that, ON ERROR RESUME NEXT will jump to the next line
on which the error has occurred. But what happened if the consecutive
3, 4 or 5 line has error? How long it will proceed?
This question has raised in an interview.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Nathaniel Martin     Answered On: Nov 30

I believe it WILL just continue skipping errors.

Granted, that's a big reason why you should really use better error  trapping
and logging so you can handle errors better than just saying "oh...just
pretend this isn't here."

And, obviously, it's not good for the code. It'll be a mess cos' not
everything was handled properly so bits/pieces of it may run and others will
have errors. So you should ONLY use this type of error handler in code where
you know there may be some silly errors that won't matter in the scheme of
things.

 
Didn't find what you were looking for? Find more on Resume Next Or get search suggestion and latest updates.




Tagged: