Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KeyPress event to capture F2-f12 keys
Message
De
29/10/2002 14:23:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00716577
Message ID:
00716583
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform