?
Solved

Visual Basic Error Handling

Posted on 2003-03-12
7
Medium Priority
?
171 Views
Last Modified: 2013-11-25
I am looking for a web site that has some really good ideas for handling errors in VB applications.  I find it very difficult to pinpoint where errors are happening in VB code and thought that there might be a better way to handle them than just displaying the error number and description.  This isn't always helpful in large subroutines.    
0
Comment
Question by:DebeG
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 10

Accepted Solution

by:
aeklund earned 375 total points
ID: 8121126
0
 
LVL 3

Expert Comment

by:QJohnson
ID: 8121143
Rod Stephens wrote a great book that covers LOTS of stuff about error handling called "Bug Proofing Visual Basic."

His web site is www.vb-helper.com.  I just tried it myself and it appears to be down today.  But it shouldn't be for long.  It is a VERY popular site.
0
 
LVL 3

Expert Comment

by:Diveblue
ID: 8121604
we use compuware's "failsafe" (originally by NuMega)

http://www.compuware.com/products/devpartner/visualbasic/error_handling.htm
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:DebeG
ID: 8122062
I am more interested in finding a web site that discusses the best method of error handling in VB.  I am not interested in buying a book, or purchasing software.  The add-ins identified from aeklund (at least the first one) is pretty cool.  My application already has this kind of error trapping.  It would just be nice to see the the exact line of code that is causing the error, instead of having to figure it out.
 
0
 
LVL 10

Expert Comment

by:aeklund
ID: 8122483
If you just looking for some write-ups on best practices or techniques, I wish you luck, I have not found any online, besides this one:
http://www.puccmultimedia.com/errorhandlinginvb.zip
0
 

Author Comment

by:DebeG
ID: 8138588
Although your comment didn't give me the information I was looking for, it is a pretty cool tool that I will find beneficial when creating VB apps.  THerefore, I am awarding the points to you.  

THanks
0
 
LVL 10

Expert Comment

by:aeklund
ID: 8138615
Glad to help.. thanks for the points.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

765 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