Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I restore value of combobox after interactive ch
Message
From
16/05/2001 16:35:40
 
 
To
16/05/2001 16:19:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00506637
Message ID:
00508095
Views:
25
David --

That sounds like a good strategy.

In our framework, data entry controls automatically get a property -- xInitialValue, which is set in the GotFocus. It's easy then to restore a correct value at the control level rather than use other mechanisms. (There is a couple gotcha with this. Under some circumstances, the GotFocus will be executed twice -- but this can be coded around.)

I've found that OLDVAL(), CURVAL(), etc. are not reliable. And, if you work with the underlying table, you have to deal with the fact that the value is committed between the VALID and the LOSTFOCUS. That makes it harder to develop a generic solution, when it's dependant upon the event cycle.

Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform