Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress event to capture F2-f12 keys
Message
From
29/10/2002 14:23:52
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00716577
Message ID:
00716583
Views:
13
This message has been marked as the solution to the initial question of the thread.
Kirk,

Perhaps you have some ON KEY LABEL commands that are causing interference. On focus() of textbox, try to PUSH KEY CLEAR, and on lostfocus() do a POP KEY to restore the OKL's. Also, you need to either lose the DODEFAULT(), or add a NODEFAULT.

>I have the following code in a text box keypress event:
>
>
LPARAMETERS nKeyCode, nShiftAltCtrl
*SET STEP ON
>IF BETWEEN(nkeyCode,-9,-1) OR BETWEEN(nKeyCode,133,134)
	this.Value=ctSetProcTime(nKeyCode,this.value)
        nodefault
endif
>
>but when I press any of the F2 key, it never fires the rest seem to work.
>Thanks
>Kirk
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform