When debugging, in the
VB Editor, go to Tools -> Options, and somewhere in
there, you'll find 3 error handling options. The default option is to break
on unhandled errors, but there are 2 other options, Break in Class Module, and
Break on All Errors. If you select either of those other 2 options, the code
will stop on the line that has your error and ignore the active error handling
in the calling code. Remember to set that back to the default later.
On Mon, 21 Jun 2004 17:44:12 +1200, "WindAndWaves" <access@ngaru.com> wrote:
[color=blue]
>Hi Gurus
>
>I noticed that when you have a class module without error handling, you can
>not actually debug it. That is to say, you will get an error when calling
>the class, but it does not tell you where the error takes place. This is
>especially difficult if you have several stacks within the class itself.
>
>Here is what I do
>
>1. create new instance of class
>2. "let" some values in class
>3. call a procedure in the class (open report)
>4. this public sub, open report, calls several functions in the class itself
>(private functions).
>
>I get an error at 3, but I can not work out exactly where at 4 the error
>occurs. Is there a way to work this out?
>[/color]