Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I restore value of combobox after interactive ch
Message
De
16/05/2001 16:35:40
 
 
À
16/05/2001 16:19:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00506637
Message ID:
00508095
Vues:
26
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
Fil
Voir

Click here to load this message in the networking platform