Re: How to anticipate errors using On Error GoTo



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."



.



Relevant Pages

  • Re: How to anticipate errors using On Error GoTo
    ... I kinda felt that experience would help me develop a repetoire of common ... This is my first attempt at writing a VB 6 program and I wanted ...
    (microsoft.public.vb.general.discussion)
  • Re: theres vs there are
    ... There's families out there losing their homes in the mortgage crisis. ... common place and acceptable in informal speaking. ... is now becoming acceptable in formal writing and speaking? ... It seems to be a very common error. ...
    (alt.usage.english)
  • Re: Wrz the spam - Update #2 online
    ... My first posting was meant as an introduction, ... Off-topic discussions are fairly common -- at times end up the bulk of the traffic. ... "Cat-vacuuming" refers to any activity which you end up doing that distracts you from actually writing, and more specifically to the never-ending types of "optional" tasks that you can keep convincing yourself you need to do before actually writing -- for instance, doing MORE research on 16th century wood-carving art because one of the characters in your modern-day novel has a 16th century wood carving in his study. ...
    (rec.arts.sf.composition)
  • Re: Another preposition question with "on"
    ... I changed it to "He was born May 25, ... I don't know whether one is more common than the other. ... Maybe the version with "on" predominates in writing, ...
    (alt.usage.english)
  • Re: Libertarian Columnist on Chris Bliss/Jason Gar
    ... that's kinda the whole problem with his focus. ... If he did any research on Jason, he'd realise that there's a lot ... Well, he clearly has no idea what he is writing about, I'll second that. ... bothering to do any research before writing I can't see why I should ...
    (rec.juggling)

Loading