Solved

Raising errors from classes

Posted on 1998-09-16
4
136 Views
Last Modified: 2012-05-04
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
Comment
Question by:jd6762
  • 2
4 Comments
 
LVL 4

Expert Comment

by:mcix
Comment Utility
Is the database class in a separate DLL project or the same?




0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
Comment Utility
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
 

Author Comment

by:jd6762
Comment Utility
The database class is in the same project.
0
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
If you are using VB4 then Q129799  might also be your error.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now