Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I compare this?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00083306
Message ID:
00083312
Views:
28
>>Help!
>>I have stored the value of this to a custom property on my form which I then compare, using;
>>
>>if thisform.surrounded==this
>>
>>basically checking that the original value is either the same or not.
>>This code I should add is in the mousemove event of my controls.
>>
>>Anyone keen to tell me the *right* way? < S >
>>
>>Cheers
>>John
>
>John,
>Firstly, what is "this" - is it a variable or object? If a variable, call it something else. If an object, should it not be checking a property of that object?

Hi John (fellow kiwi)

This is code I put in the When and Valid clauses. I think it does what you want
When Clause
*//////////
this.origvalue = this.value


Valid Clause
*///////////
if this.value <> this.origvalue

else

endif

I use it to activate save/cancel buttons, change text colour and all sorts of good stuff. I've also put it in a class so I don't have to code it every time.
- Sarah
Sarah King
pcpropertymanager.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform