Form On Error event

  • Thread starter Thread starter kmercer46
  • Start date Start date
K

kmercer46

i want to use a form's OnError event to close the form if an error
occurs, but the event is not working. it just brings up the error
window with the End and Debug buttons. i remember seeing an option
somewhere that consults the form's event before any other control's
event, but i can't find that in any property windows. is that the
issue?

or.. maybe someone can hear my main problem and address another way to
handle it:

my form uses global variables. when an error occurs, though, the
project is reset and my variables lose their values. i want the forms
to close when an error occurs so that the user has to re-open the form
to refill the variables.
 
Is this the behavior in the IDE? Try compiling and then running the app from
the command line

And you want the user to refill in everything? Not very friendly..shouldn't
you trap the error in the first place, and notify the user?

Jeff
 
Back
Top