Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interrupt a process with a click
Message
 
 
To
01/07/1999 16:02:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00236671
Message ID:
00236724
Views:
12
Allen,

As Sylvain mentioned you need a doevents call. There is an object wrapper for it to encapsulate the loop counter over my website. It's under Q&A, General, article qgen006

>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.)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform