Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress event does not function correctly
Message
De
09/07/1999 11:38:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00239445
Message ID:
00239469
Vues:
12
>In an textbox or an editbox, when I want to restrict some keys, I set the "nKeyCode" parameter to 0. According to documentation, setting this to zero will make it forget that the key was pressed.
>
>The key still appears in the edit/text box. However, the same code works fine in Visual Basic.

Instead of setting nKeyCode to 0, try calling NoDefault:
PARAMETERS nKeyCode, nShiftAltCtrl
if !isalpha( chr(nKeyCode) )
  NoDefault
EndIf
Sylvain Demers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform