Information générale
Catégorie:
Codage, syntaxe et commandes
>>InteractiveChange, by definition, means "something" about the field changed, you may have to determine "what". :-) I used this as an example of the kind of testing you may want to do. You will have to taylor you testing to your situation. You will have to set up checking for a "changed" condition for a field then test the condition in the InteractiveChange. You want to keep this as simple and streamlined as possible since InteractiveChange fires a lot. :-)<<
Bill,
because Interactive Change fires a lot, I thought about checking for a change as follows:
1. Set up a new property of the control..call it OrigVal and in GotFocus do a
this.OrigVal=this.value
2. In Lost focus , have following code:
if this.OrigVal <> this.value
ThisForm.Changed = .t.
endif
Can you see any problems with this. I would obviously have to build this into all my Base classes
Regards,
Gerard
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