Inline error handling

Results 1 to 2 of 2

Thread: Inline error handling

  1. #1
    Join Date
    Dec 1969

    Default Inline error handling

    I&#039ve started using On Error Resume Next to bypass fatal errors due to periodic type mismatches in my script. I would also like to print an error message on the screen when one occurs, not in a message box, but actually in the browser window, using, I&#039m assuming, a Response.write. How can I add this as an action to the On Error event?

  2. #2
    Join Date
    Dec 1969

    Default RE: Inline error handling

    Duncan<BR><BR>The quickest way to get error handling in your code is to use If..Then type control:<BR><BR>Err.Clear<BR>On Error Resume Next<BR><BR>~~~~~Do something~~~~~~~~~<BR><BR>If Err.Number &#060;&#062; 0 Then<BR> Response.Write "I Encountered an Error !"<BR> Err.Clear<BR>End If<BR><BR>Good Luck<BR><BR>

Posting Permissions

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