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:
01023454
Views:
13
>>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.
>
>Nadya,
>What I'm trying to make clear to you is that you really shouldn't confront the user with THAT question when ESC is pressed. It is simply not the correct way of handling the ESC-key. It is also simpler then. If the user answer NO (inplying no abort), then do RETURN. No Save-action is here justified.

Peter,

MereMortals forms have a property - lReleaseOnEsc. If this property is set to true (default), then the ESC should behave the same way, as close button. I don't want to argue, that it's a bad design (perhaps, it is). I am asking a question, how can I make it behave the same way as Close. So far I didn't have any suggestions, which would help me to accomplish it.

Remember the story about the programmer changing the light bulb? I think it was discussed here < g > I am not that interested in the arguments of that it should not be done (I even agree with this point), but I am interested in the way it could be done, if we set this as the business requirements.

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