*** Form.TextBox.GotFocus
ON KEY LABEL F5 DO recalc IN hooks
*** hooks.prg
PROCEDURE recalc
_SCREEN.ActiveForm.cmdRecalc.Click()
ENDPROC
*** Form.TextBox.LostFocus
ON KEY LABEL F5
Got it?
>I need to read the F10 keypress in a text box. I put code in the keypress method and it will read all the key pressed except the F10 key . Any thoughts on how to read the keypress. Client wants to use F10 for consistency sake so I can't substitute another key.
>
>I tried to use the on key label F10 however, when I press the F10 key an error message comes up and states that it doesn't recognize thisform. The code for the key label is as follows:
>
> ON KEY LABEL f10 thisform.cmdrecalc.click()
>
>
>I would prefer to use the F10 keypress event. Any thought on how to do this or why the on key label gives an error message would be greatly appreciated.
>
>Thanks
>Gaylen Jungling------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05