Solved

How to trap for format errors in vb.net

Posted on 2004-09-22
3
143 Views
Last Modified: 2010-04-23
I am writing data to a table.  Intermittently I will get a format error.  I can click ok and the job will continue.  The error does not give me any detail other than format error.  Is their any way I can trap for these kinds of error messages to give me more detail of what the problem is????

Thanks
Kenny

0
Comment
Question by:kwh3856
[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
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 12126612
Put it into try catch block and read the error message (err.Description)
0
 

Author Comment

by:kwh3856
ID: 12127543
Is the err.Description a specific function of vb.net where it give more detail.  The way I currently handle the error is as follows:


Try
....
.,..
....

Catch ex As Exception
    MsgBox(ex.ToString())

EndTry

Or does this code do the same thing?

Thanks
Kenny


0
 

Author Comment

by:kwh3856
ID: 12136836
Thanks for the help


Kenny
0

Featured Post

Independent Software Vendors: 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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

729 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