Is there a list of Error Numbers for VB6?
I am handling errors with the
on error goto
开发者_开发问答statement, and when the error processing is activated, I wish to handle the errors something like this...
If Err.Number = this Then
do_this
ElseIf Err.Number = that Then
do_that
Else
do_the_other
End If
To do this, though, relies on knowing what errors generate which numbers. Is there a list of these anywhere (I have been unable to find one)?
Here are the core Visual Basic 6.0 language errors:
Trappable Errors - Visual Basic for Applications Reference - Visual Studio 6.0
Searching for "Trappable errors" also produces such list for VS 2008 (i.e. Office 2007) and a list for an unspecified version dated 2006 (so must be Office 2003).
Summon help (f1 key), select the index tab and type in 'trappable errors'.
(assumes you have vb6 help installed)
精彩评论