Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental search
Message
De
09/06/2001 07:58:52
 
 
À
09/06/2001 06:57:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00514814
Message ID:
00517357
Vues:
21
Hi Fred.

>> I am trying to intercept some key strokes in a simple text box. In VB I can retrun any keystroke in the keypress event. In Foxpro, it seems to put the char in the textbox.value no matter what I do. What am I missing? <<

What you are missing is NODEFAULT.

So, all you need is code like this in the KeyPress:

IF INLIST( nKeyCode, < whatever keys you want to intercept > )
*** Code to do whatever you want to do with the keystrokes here
NODEFAULT
ENDIF

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform