Kevin Clark
2010-11-30 19:30:53 UTC
I have a form that uses ON ERROR to catch any errors not handled by
TRY ... CATCH.
When an error occurs within a method of the form, I would like to have
the option of unloading the form and not continuing the rest of the
lines in the method that caused by error. However, no matter what I
do, it seems that the current method is run to the end. Using UNLOAD
or RELEASE to try to clear the form from memory doesn't seem to do
anything.
Example:
x=x/0 && generates error and runs error handler
print "This line always runs when returning from error handler"
I would like to use form.release or form.unload or something else in
the error handler to unload the current form and prevent the method
from continuing.
Is there any way to do this?
Regards,
Kevin Clark
TRY ... CATCH.
When an error occurs within a method of the form, I would like to have
the option of unloading the form and not continuing the rest of the
lines in the method that caused by error. However, no matter what I
do, it seems that the current method is run to the end. Using UNLOAD
or RELEASE to try to clear the form from memory doesn't seem to do
anything.
Example:
x=x/0 && generates error and runs error handler
print "This line always runs when returning from error handler"
I would like to use form.release or form.unload or something else in
the error handler to unload the current form and prevent the method
from continuing.
Is there any way to do this?
Regards,
Kevin Clark