General information
Category:
Forms & Form designer
Title:
Interrupt a process with a click
I have a form with START and STOP buttons. Processing is performed in a Do While loop in the Click() method of the START button. I'd like the STOP button to respond immediately to the user's click (it's a graphic radio button) with a "please wait message" and processing to terminate at the next safe opportunity. The problem is, while the processing is going on the form is not responding to input. I'm currently using an INKEY() within the processing loop to check the keyboard but it's sort of a kludge and there is no immediate feedback to the user to let him or her know the request has been acknowledged. Is there a nicer approach for allowing a button to interrupt a process? (I have to keep VFP5 and VFP6 compatibility.)
Thanks for your help,
Allen
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only