Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Esc does quit
Message
From
27/09/1997 21:57:57
 
 
To
27/09/1997 21:53:56
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00051976
Message ID:
00052006
Views:
37
>>>>In many application, pressing Esc is quitting the form.
>>>>
>>>>What's the best way to handle that in Visual FoxPro?
>>>
>>>in most of our forms we have cancel command buttons and by setting the cancel property of the button to .t. esc will execute the code in the click event of the button.
>>
>>If I don't have a cancel button, I guess I can put one there which is not visible to obtain the same behavior.
>>
>>Thanks.
>
>ON ESCAPE ThisForm.Release() ?

From the help:

Visual FoxPro doesn’t execute an ON ESCAPE routine if SET ESCAPE is OFF.

In my case, I have SET ESCAPE OFF, so this won't help.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform