|
-
Dec 29th, 1999, 09:01 AM
#1
Thread Starter
Lively Member
I need to find a way to stop execution on the form level. I have a cancel button that should end all activity on the current form, hand control back to a main form, and close itself. Unfortunately, once I get done executing the unload procedure, the code begins executing back where it was stopped. The "End" statement won't work because it ends the entire program's executions. Thanks for all help.
-
Dec 29th, 1999, 10:26 AM
#2
Guru
In those cases, I've used a global variable to determine if a valid selection was chosen in the modal form. If not, then exit sub (the sub that showed the form), otherwise, continue.
I don't like doing it that way, but that's the only other way I can think of, besides the modal form modifying a property on the main form, and testing for that, but that's basically the same thing. Anyone else?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|