General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only