Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 - Problem with Escape to Cancel
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00037381
Message ID:
00037523
Views:
46
Paul,
I had the cancel property set to true. This button is full-time cancel, I just want it to respond from clicking or while the program is in the middle of a lengthy update operation. Thx for your input.

Ed,
I assume that your comment is telling me to do ON ESCAPE . .outside of the form. Since this is the only form in the project, I am not transitioning from form to form so my "program" is really only about two lines of code including DO FORM. I will try your suggestion and let you know. Thx for the help.

Marc,
Thanks for the input. I don't intend to use ESC anywhere else. I will let you know if SOMETHING out of all of this works.



>>Set the Cancel property of the button to .T. (under the 'Other' tab of
>>the Property sheet).
>>
>>/Paul
>
>... and make sure that you do not capture the Escape key anywhere else, specifically not in the form (in the keypress event f.e.). Then it will work, ... most of the time. I've had similar experiences with failing Escape keys. I still have not found out why it sometimes does, and sometimes does not work.
>
>One of the VFP mysteries. I'm working on it :)
>
>Marc
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform