Share via


Visual Basic Concepts

Checking Error Numbers

You can use the Immediate window to display the message associated with a specific error number. For example, enter this statement in the Immediate window:

error 58

Press ENTER to execute the statement. The appropriate error message is displayed, as shown in Figure 13.23.

Figure 13.23   Displaying error messages from the Immediate window