3

Is it possible to have a module level error handler rather than procedure level?

ramu
  • 1,019
  • 3
  • 15
  • 41
  • 1
    Not directly. You'll need a procedure level stub that calls a module level handler which can forward to a global (project-wide) error handler. – wqw May 07 '11 at 08:58
  • 1
    Hmm, no. Modules do not retain state. There's no way for a module to know that it's supposed to handle errors. Can you give more information about the specific problem you're trying to solve? – Cody Gray - on strike May 07 '11 at 09:06

1 Answers1

2

No.

  • Use the free add-in MZ Tools to put an error handler in each routine automatically.
  • And see other questions for best practises in VB6 error handlers.
Community
  • 1
  • 1
MarkJ
  • 30,070
  • 5
  • 68
  • 111