Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox - don't want ENTER to change value
Message
 
À
22/12/1999 09:11:09
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00307053
Message ID:
00307341
Vues:
15
>>
>>IF LASTKEY() = 13 && Enter
>>   This.Value = NOT This.Value
>>ENDIF
>>
>I would caution you that LASTKEY() doesn't necessarily give you the key last pressed in this control. If you press Enter to move to the checkbox, then click the checkbox, LASTKEY() is still Enter.

Charlie,

Good Point move the code to teh checkbox KeyPress event and change it to;
IF nKeyCode = 13
   NODEFAULT
   KEYBOARD "{TAB}"
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform