Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement