Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox content has changed?
Message
 
 
À
15/06/2007 17:41:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01233670
Message ID:
01233683
Vues:
9
>Hi, everyone!...
>
>How do I detect if the content of a textbox has changed?...
>
>Thanks in advance!
>Carlos Burgos

Save value in GotFocus and check in Valid event, if the value is the same.

You can use tag property to save value (you would need to transform to text) or add a new property, e.g.

GotFocus
this.AddProperty('CurrentValue', this.value)
this.CurrentValue = this.value
Valid event
if this.value <> this.CurrentValue 
  * Perform validation
endif
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform