on error resume next

Results 1 to 3 of 3

Thread: on error resume next

  1. #1
    Join Date
    Dec 1969

    Default on error resume next

    when can i use "on error resume next" statement? because my lead wants me to remove it.

  2. #2

    Default RE: on error resume next

    Use in points where a failure in the code will cause a failure in the web application - Database reads, writes, inserts, updates or pages of heavy processing logic

  3. #3
    Eddie Campbell Guest

    Default RE: on error resume next

    It is dangerous to use it all the time as errors can be overlooked until too late.<BR><BR>In general only use it in a situation where you expect there to be a possible error which you are happy to ignore. Then use On error goto 0 to turn it back on again.<BR><BR>BTW I once worked with a guy who always turned error handling off, and guess what... His code was crawling with hidden bugs that took weeks to fix.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts