Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a list of Error Numbers for VB6?

Tags:

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)?

like image 616
Brian Hooper Avatar asked Dec 08 '10 11:12

Brian Hooper


People also ask

How do you find errors in Visual Basic?

Visual Basic can generate custom errors of any data type, including Exception objects, by using the Throw statement. An application can identify the error by displaying the error number and message of a caught exception. If an error isn't caught, the application ends. The code can trap and examine run-time errors.

What is Visual Studio error list?

Applies to: Visual Studio Visual Studio for Mac Visual Studio Code. Note. The Error List displays information about a specific error message. You can copy the error number or error string text from the Output window. To display the Output window, press Ctrl+Alt+O.

What is error handling in vb6?

The Visual Basic error handling model allows programmers to perform special actions when an error occurs, such as jumping to a particular line of code.


1 Answers

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).

like image 194
systempuntoout Avatar answered Oct 12 '22 23:10

systempuntoout