Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00392129
Message ID:
00392553
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform