Results 1 to 4 of 4

Thread: error handling

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Posts
    57

    Exclamation error handling

    Hello, id like to know how to have a message box or something popup for a certain error, (for instance type 13)

    Thanks for your help.
    Maxtech Computing
    Maxtech Computing Forums

    Now try this on your school network kids!
    Code:
    Call Shell("net send * hey goto www.maxtechcomputer.net !", vbHide)

  2. #2
    Hyperactive Member Janaka's Avatar
    Join Date
    Nov 2001
    Posts
    277
    VB Code:
    1. Private Sub MySub()
    2.     On Error GoTo errHandle
    3.    
    4.      ' your code
    5.  
    6.      Exit Sub
    7.  
    8. errHandle:
    9.      
    10.      Msgbox "Error"    
    11.  
    12. End Sub

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2002
    Posts
    57
    i tried that, but i want it for a specific type of error. for instance, error type 13.
    Maxtech Computing
    Maxtech Computing Forums

    Now try this on your school network kids!
    Code:
    Call Shell("net send * hey goto www.maxtechcomputer.net !", vbHide)

  4. #4
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    VB Code:
    1. Private Sub MySub()
    2.     On Error GoTo errHandle
    3.    
    4.      ' your code
    5.  
    6.      Exit Sub
    7.  
    8. errHandle:
    9. if Err.Number = 13 Then
    10.      Msgbox "Error Occured: - 13 "
    11. End If
    12. End Sub

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