Please someone tell me ther is a list explaning what every #$%#%&* error code means, I know it sound relly boring, however this woud be very useful, for error traping,testing and application development.
If there is no such list lets make one!
Printable View
Please someone tell me ther is a list explaning what every #$%#%&* error code means, I know it sound relly boring, however this woud be very useful, for error traping,testing and application development.
If there is no such list lets make one!
yes. there are lists of what the error codes mean on any MSDN CD.
Hi,
I agree with the post above.
Specifically you can look at:
VB documentation
- Reference
- Trappable Errors
Hope that helps.
JazzBass
Trappable errors from msdn: http://msdn.microsoft.com/library/de...ealMsgTrap.htm
You could also create an Error object, set the error level in a loop and examine the associated text for each value.
No I can't remember how to do it - how about it Matthew Gates, kedaman, Yonatan, HeSaidJoe etc....
Cheers,
Paul.
this will only trap vb errors so it the error is
produced by something outside you will get nothing
Code:'get error source and description
Private Sub Command1_Click()
Dim Msg$
' If an error occurs, construct an error message
'hardcode the error number for test purpose
Err.Number = 20520
If Err.Number <> 0 Then
Msg$ = "Error # " & Err.Number & " was generated by " _
& Err.Source & Chr(13) & Err.Description
MsgBox Msg$
End If
End Sub
I thought that was what was wanted<sigh>
P.