Re: How to anticipate errors using On Error GoTo
- From: "Tony Girgenti" <tony(nospam)@lakesideos.com>
- Date: Tue, 22 Jan 2008 18:05:13 -0500
Hello Jeff.
Thanks for your information.
I kinda felt that experience would help me develop a repetoire of common
errors. This is my first attempt at writing a VB 6 program and I wanted to
see if anybody had any more insight into the error handling situation.
I thought that i would go through each procedure and try to pick out the
lines of code that had the greatest chance of erroring out and then try to
code the error handler for it.
Thanks,
Tony
"Jeff Johnson" <i.get@xxxxxxxxxxx> wrote in message
news:13pcrq3d1p1gne6@xxxxxxxxxxxxxxxxxxxxx
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
news:ePmVdYTXIHA.1376@xxxxxxxxxxxxxxxxxxxxxxx
Where can i find a list of what possible errors can occur based on the
function of the procedure?
To my knowledge there is no such thing. Basically, it's called Experience.
For example, I started keeping a list of the various error codes that I
got in my data-centric programming.
When you start from scratch you intentionally try to break your code, see
what errors you manage to create, and add them to your code. Then, when
your users get ahold of the program they'll manage to generate other
errors and you incorporate them into the next version. Then on the next
project you can look back at the code from the first and have a head
start. And so on, and so on. Like I said, Experience.
There IS a basic list of error codes that VB knows about intrinsically (as
opposed to error codes that are thrown from external libraries, like DAO,
ADO, etc.). You can find it at
http://msdn2.microsoft.com/en-us/library/aa264975.aspx, but you pretty
much have to study the list. It doesn't necessarily say "When doing THIS,
THESE errors may occur." Rather you read about the error and backtrack,
thinking, "Oh, THIS error would probably occur when I'm doing THAT."
.
- Follow-Ups:
- Re: How to anticipate errors using On Error GoTo
- From: MikeD
- Re: How to anticipate errors using On Error GoTo
- From: Ralph
- Re: How to anticipate errors using On Error GoTo
- References:
- How to anticipate errors using On Error GoTo
- From: Tony Girgenti
- Re: How to anticipate errors using On Error GoTo
- From: Jeff Johnson
- How to anticipate errors using On Error GoTo
- Prev by Date: Re: Manifests problems on XP
- Next by Date: Re: Loading, unloading
- Previous by thread: Re: How to anticipate errors using On Error GoTo
- Next by thread: Re: How to anticipate errors using On Error GoTo
- Index(es):
Relevant Pages
|
Loading