Results 1 to 2 of 2

Thread: Stopping execution at the form level

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Atlanta, GA
    Posts
    75

    Post

    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.

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    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
  •  



Click Here to Expand Forum to Full Width