I am working with old ASP code and I am not sure about semantics of on error goto 0 and error resume next construction.
Can you recommend me some useful resources or enlight me directly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On error resume next: If there is an exception in the program, just ignore it and continue to the next statement. Considered very bad and ugly, and rightly so in my opinion. It’s like having a big:
in every method of your code (or worse, around the whole program).
On error goto 0: disables any error handler that is defined in the current procedure. It’s like having a big try-catch around your code, which gets disabled as soon as its hit this line.
For more information, see the MSDN.