PDA

Click to See Complete Forum and Search --> : On Error....Do Nothing?


sunburnt
Mar 7th, 2002, 01:07 PM
Has anyone else had this vexing problem? For certain errors, ie this one (R not set to an instance of an object)

Dim r as FooObject
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.

Shawn N
Mar 8th, 2002, 02:48 PM
You could always use the "Try/Catch" handler but don't do anything on the Catch.