
03-15-2005, 07:22 AM
|
 |
Contributor
|
|
Join Date: Dec 2004
Location: BC, Canada
Posts: 494
|
|
Quote:
|
Originally Posted by Iceplug
Ideally, you should first be able to know what line(s) raise your error. You should only have a handful of lines that raise an error. If you have an error that occurs in all of your functions, then you should recode and setup a proper initialization sub.
How many lines do you get errors on? You should only need to setup a Try Catch block on the lines that are known or very prone to an error. 
|
Thats makes sense. So my best bet would be to use try..catch with my MySQL lookups. Since there can be times where the database is unreachable and this would definately cause a runtime error.
So Pseudo wise it would be something like:
Code:
Dim stuff
...
Try
....
'-- Execute MySQL Connection and Query
....
Catch
....
'-- Some sorta error handling thingy here
.....
End Try
Now I just need to find what type of errors can happen when I do something like this.
Thanx
|
|