Information générale
Catégorie:
Gestionnaire d'écran & Écrans
David --
>Thanks Jay. Please note that in this situation there is no control source, so oldval() and curval() can't be used. Also, (I think?) that I can't code it in the gotfocus because, if I understand when gotfocus fires correctly(??), it wont fire if focus is already on the control, and then you click to it again, and change the value, gotfocus won't fire. So I coded it in the click event. I haven't yet tested when gotfocus actually fires, so I might be all wrong on this. What do you think?
I may have misunderstood what you're trying to do. If you want to get the state of a control as the user enters it and before modification, the GotFocus event will execute whether the user enters through the keyboard or a mouse. I was sharing our experience in attempting to do that.
You may have other requirements. If so, I've found experimenting with the various events is the best way to get a handle (sometimes it's like a tiger by the tail!)
Jay
Précédent
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