Create a VB Error Message Reference List
Create a VB Error Message Reference List
Rate Create a VB Error Message Reference List
(2(2 Vote))
Private Sub Form_Load()
Dim i As Integer
For i = 0 To 32000
'Use this test in VB3:
'If Error$(i) <> _
"User-defined error" Then
'Use this test in VB4 and later:
If Error$(i) <> "Application-defined " _
& "or object-defined error" Then
Printer.Print i, Error$(i)
End If
Next iEnd Sub
This program prints all defined error descriptions. All undefined error descriptions return "Application-defined" or "object-defined error" (or "User-defined error" in VB3), so you check for these and ignore them.
Create a VB Error Message Reference List Comments
No comments yet — be the first to post one!
Post a Comment