General information
Category:
Coding, syntax & commands
Display a form with a Cancel button before starting your loop and insert a DOEVENTS in your loop to let VFP a chance to trap the click event. You might want to run DOEVENTS every 10 or 100 iterations, because it will slow down too much your application.
HTH
>From the one running process (Eg. do while loop), Can i exit on pressing Cancel button? I can do it for Escape button using InKey() function. But i want to do it by pressing any button.
Previous
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