>>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