Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00392129
Message ID:
00392553
Vues:
9
>I have some code I want to run in the keypress event of a textbox. In the event code I have a dodefault() but it doesn't appear to update the value property of the control with the key that was pressed to get into the event code.
>
>When does the value of the key that was pressed get added to the value property of the control?


I solved my problem but thanks for replying. I solved my problem by using the nkeycode parameter. I still wonder why the dodefault() doesn't add the keypressed value to the value property of the control. I mean it seems that if you put a dodefault() and then write code to that references the value property of the control, the last keypressed should be in the value (given that it was a character key). In my experiences it seems this is not the case. I guess the value gets updated after all the code in the keypress is run.
Rip Ryness
International Falls, MN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform