Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box Not updating properly.
Message
 
To
15/10/1998 16:48:06
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00147125
Message ID:
00147263
Views:
30
>It works! It works! Thanks, now I just need to figure out WHY it works and I will be happy. :)

Calvin,

it wokrs because, a control does not update its controlsource until after its Valid fires. The Valid fire in the process of the control losing focus. The firing of the keypress event of the form does not move focus away from the current control, therefore you have to trivck VFP into thinking the control is losing focus, and you do that by telling it to put focus where it already is. By doing this VFP (dumb as it is) thinks the current control must first lose focus and so it fires the valid and updates the controlsource, then it simply puts focus back on the same control.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform