Re: Ctrl+S = SAVE




"Zeeshan Hussain" <zeeshan@xxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:eyybn2NgHHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
Hye,

Dear i want to know that how can i save data on form by Pressing "Ctrl+S"
key. i mean that Save button pressed automatically by pressing "Ctrl+S"
key.
Hi Zeeshan,

You can either
- add hotkey functionality to your commandButton by modyfing its
caption like "\<Save" (giving a <Alt+S> hotkey)

- and/or create a menu with Options -> Shortcut -> Key Label in the designer
and then in the command line add something like "_screen.ActiveForm.
yourSaveMethod()" (w/o quotes) and in Skip For write like:
Type("_screen.ActiveForm.Name")<>"C" Or
!PemStatus(_screen.ActiveForm,'yourSaveMethod',5)



hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------


.


Loading