Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to automatically enable buttons
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00287693
Message ID:
00288476
Views:
21
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform