Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No press button while processing?
Message
From
29/12/2004 16:18:08
 
 
To
29/12/2004 15:46:28
Koos Veel
Gamma Research
Aruba
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00973090
Message ID:
00973096
Views:
17
Something like this might do the job:
yourform.cmdStopAction.Click: yourform.lStopAction=.T.
yourform.cmdStartAction.Click: yourform.lStopAction=.F.
SCAN WHILE !yourform.lStopAction
  ..Process a record
ENDSCAN
Or simply
yourform.cmdStopAction.Click: KEYBOARD '{ESC}' PLAIN
>Dear all,
>
>In a VFP 8.0 application we have a screen where you can click on a button to process a certain amount of records of a table with some calculations. It may take some time and the user should be able to stop the process by pressing another button. But while the program scans through the records, there is no way you can press another button (the cursor changes to the hour glass cursor). We could rely on a good old Escape but we rather have a cancel button. Anybody knows how to do this?
>
>Thanks,
>
>Koos Veel.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform