Results 1 to 7 of 7

Thread: Trapping Errors [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871

    Angry Trapping Errors [RESOLVED]

    Why isn't my error trapped? I've built a code which uses two loops. Since I don't have good conditions to restrict the number of loops I use error trapping for it. But I still get errors that stop the execution of the app (5 - Invalid procedure call or argument) although the line above the one that causes the error is 'On Error Goto EndTags'...

    The code follows this format. If this doesn't help I'll post my code. Thanks.
    VB Code:
    1. Do
    2.   On Error Goto EndTags
    3.  
    4.   If ...
    5.  
    6.     On Error Goto EndAttributes
    7.     Do
    8.  
    9.     Loop
    10.  
    11.   EndAttributes:
    12.   End If
    13. Loop
    14.  
    15. EndTags:
    Last edited by TheVader; Dec 11th, 2003 at 06:29 PM.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

Posting Permissions

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



Click Here to Expand Forum to Full Width