|
-
Apr 22nd, 2002, 10:22 PM
#1
Thread Starter
Member
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.
-
Apr 22nd, 2002, 10:42 PM
#2
Hyperactive Member
VB Code:
Private Sub MySub()
On Error GoTo errHandle
' your code
Exit Sub
errHandle:
Msgbox "Error"
End Sub
-
Apr 22nd, 2002, 10:52 PM
#3
Thread Starter
Member
i tried that, but i want it for a specific type of error. for instance, error type 13.
-
Apr 22nd, 2002, 11:27 PM
#4
Frenzied Member
VB Code:
Private Sub MySub()
On Error GoTo errHandle
' your code
Exit Sub
errHandle:
if Err.Number = 13 Then
Msgbox "Error Occured: - 13 "
End If
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|