Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I set up a cancel button to cleanly cancel a proc
Message
From
02/02/2000 14:34:15
 
 
To
23/01/2000 22:04:19
Robert Younis
V-Fox Programming & Consulting, Inc.
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00321518
Message ID:
00326315
Views:
18
I don't know if this is what you are looking for exactly...



scan
*--- do some code

**-- check for an escape key pressed by the user
if inkey()=27
return(.f.)
endif

endscan

You can display a message to 'Press Escape to cancel...'

Hope this helps

>How do I set up a cancel button to cleanly cancel a process?
>If I have a process button running code in a form, how do I put
>in a cancel button that stays active during the processing so
>that when the cancel button is clicked the processing is stop
>and some cleanup code is run?
>
>Thanks in advance, Robert.
Thanks,

Stacy



Black Mountain Software, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform