Home » Developer & Programmer » Forms » How to trap F-10 key
How to trap F-10 key [message #82930] Fri, 18 July 2003 03:27 Go to next message
Raj
Messages: 411
Registered: November 1998
Senior Member
I want to save the form using a save button becuase i am doing some validations,but when i press F-10 key it saves without the validations.How should i trap this key.
Thanks in advance
Re: How to trap F-10 key [message #82932 is a reply to message #82930] Fri, 18 July 2003 05:33 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Create a KEY-COMMIT trigger, and perform your actions there (same as in the WHEN-BUTTON-PRESSED of your "save" button). You could put all this in a program unit and make a call to this code from both your button and the key-commit trigger. That would make maintenance easier. Be careful, because what happens when a user simply exits the form? Normally, Forms would ask to commit the changes.

MHE
Previous Topic: keyboard
Next Topic: Forms Difference Tools
Goto Forum:
  


Current Time: Fri Mar 29 00:48:30 CDT 2024