• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Raising errors from classes

I am trying to raise an error in a class and trap it in the interface portion of the code.  

I created a database class.  
There is an on error goto statement in the login form.
If there is an error opening the DB (file not found for an MDB) , I raise an error and would like to process it in the login form.  However VB5 displays the error message as if there is no on error statement.

I am on NT4.0

 
0
jd6762
Asked:
jd6762
  • 2
1 Solution
 
mcixCommented:
Is the database class in a separate DLL project or the same?




0
 
MirkwoodCommented:
If you are running in the VB IDE, make sure that the break option in Tools\options\general is set to break on unhandled errors only.

0
 
jd6762Author Commented:
The database class is in the same project.
0
 
MirkwoodCommented:
If you are using VB4 then Q129799  might also be your error.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now