Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Entry form and Esc
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01023308
Message ID:
01023391
Views:
10
>>Hi everybody,
>>
>>In MereMortals if I press ESC the form is released. If I was typing something in the textbox, then pressed ESC - the content of what I typed is deleted and the form is released without a question. I want a question asked "Do you want to save the changes?" and if yes, what I typed should be saved...
>>
>>How can I achieve this funcitonality?
>>
>>Thanks in advance.
>
>Apart from your wish for a confirmation, which is fully justifiable, you better want the question 'Do you want to abort?'. When the user presses No, you should act asif the ESC key was not pressed, so continue. In other words, the ESC key should never lead to a save. (This advice is universal, not scoped to MereMortals.)

The question asks "Do you want to save your changes?" Yes/No/Cancel. It works when you try to close form by close button (on the form, toolbar and right upper corner). I want similar functionality on ESC... I'm thinking, I would have to somehow save the value before ESC in form's property, then restore... But perhaps someone has it fully implemented already and can give me some ideas...

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform