Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to automatically enable buttons
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00287693
Message ID:
00288476
Vues:
22
>>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
Fil
Voir

Click here to load this message in the networking platform