Results 1 to 3 of 3

Thread: [RESOLVED] On error resume next...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Resolved [RESOLVED] On error resume next...

    We can have:

    On Error Resume Next

    or

    On Error Goto Err_hldr


    But this will apply this to the entire sub.

    Is It possible to have somthing like this:

    Code:
    Private Sub Command1_Click()
    
    On Error Resume Next
    Kill ThisFile
    On Error Break
    Kill AnotherFile
    
    End Sub
    So that the program would break normally after this line?

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: On error resume next...

    Use On Error GoTo 0 to clear the error handler

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: On error resume next...

    Sweet! Thanks

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