Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox content has changed?
Message
 
 
To
15/06/2007 17:41:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01233670
Message ID:
01233683
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform