on error next resume

Results 1 to 2 of 2

Thread: on error next resume

  1. #1
    Join Date
    Dec 1969

    Default on error next resume

    Hi All,<BR><BR>I have a problem, i am using the error object like this<BR>On Error Resume Next <BR><BR>some code here <BR>---------------<BR>---------------<BR>---------------<BR>Dim error<BR>if err.number &#060;&#062; 0 then<BR>error = "this is error for this code"<BR>end if <BR><BR>On Error Resume Next<BR><BR>some code here<BR>-------------<BR>-------------<BR>-------------<BR><BR>if err.number &#060;&#062; 0 then<BR>error = "because of second code"<BR>end if<BR><BR><BR>but problem is it error generate for the second one but hte error varaible contain only first error not get the second. any body have any idea.<BR><BR>how i can check the in which code generate the error.<BR><BR>Thanks <BR>Affan

  2. #2
    Join Date
    Dec 1969

    Default RE: on error next resume

    Try <BR><BR>if err.number &#060;&#062; 0 then<BR>error = "because of second code"<BR>err.clear<BR>end if<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