Results 1 to 2 of 2

Thread: On Error....Do Nothing?

  1. #1

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    On Error....Do Nothing?

    Has anyone else had this vexing problem? For certain errors, ie this one (R not set to an instance of an object)
    VB Code:
    1. Dim r as FooObject
    2. r.Property = "blah"

    You recieve a run time error, or a break at debug time. However, often, when something goes wrong, I will not recieve any notification whatsoever -- the code simply stops executing at the line where the error occured. This is vexing, because I have to step through practically the entire project to find some small problem. Why am I not getting some sort of error?

    P.S. - I'll look through my code and see if I can find an example.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  2. #2
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    You could always use the "Try/Catch" handler but don't do anything on the Catch.
    Please rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width