i have a main loop doing a bunch of processing work
i have a button - which is a cancel button. If the user presses that button - i want control to leave the main loop where it is - i.e. i want all control to transfer out of that loop - for the loop to exit.
how would i do this?