Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox.KeyPress and TextBox.value
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
TextBox.KeyPress and TextBox.value
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01170174
Message ID:
01170174
Views:
56
Hello,

I need to check the value in textbox each time user presses buttons on the keyboard. But I'm getting value in Textbox.Value which was before user pressed key in the method TextBox.KeyPress. So I have to add CHR(nKeyCode) to Textbox.Value to get latest value inside textbox.
Everything is fine until user presses BackSpace or delete buttons - in this case I cannot determine actual TextBox.Value value.

I think that there should be another solution... :-/

Thanks in advance
Giedrius
Next
Reply
Map
View

Click here to load this message in the networking platform