Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help - On Escape command gives problems
Message
From
27/01/1999 12:12:57
 
 
To
27/01/1999 09:35:55
Kumar C G
Nucleus Infomatrix
Bangalore, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00180728
Message ID:
00180842
Views:
17
You might try a different approach. Say your process is inside a loop:
THISFORM.cmdCancel.Visible = .T.

DO WHILE NOT lCompleted AND NOT THISFORM.lInterrupted
   * Some process here
   DOEVENTS && Tell VFP to check for pending events (mouse click, keyboard entry, etc.)
ENDDO

THISFORM.cmdCancel.Visible = .F.

cmdCancel.Click():
THISFORM.lInterrupted = .T.
HTH

>I have a long process running in My program. I want to give the user the flexibility to stop and get out of this process when he desires. I have tried using On escape command in the code for the process.In the message box if I try to continue the same process by giving RETRY it says " Invalid Push/ Pop"
Previous
Reply
Map
View

Click here to load this message in the networking platform