Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress funny
Message
From
17/04/2001 13:17:51
David Brunelle
Université de Sherbrooke
Sherbrooke, Quebec, Canada
 
 
To
17/04/2001 13:05:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00496099
Message ID:
00496212
Views:
11
I personnaly use the LASTKEY function for such matter because it always give the the VERY LAST KEY pressed...

>>is it usual for KeyPress to be one character behind what has actually been typed on the keyboard? i have a textbox for entering stuff and in the KeyPress event i put in the line ?var. at the first KeyPress the var is an empty string (spac(20)) and charcters only start showing after the second character is typed in.
>>tia - john
>
>If var is the textbox's ControlSource, yes, what you're seeing is normal. The character isn't added to the Value/ControlSource until after the code in KeyPress executes.
>
>Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform