Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
InteractiveChange event way of doing things
Message
From
04/02/1997 13:11:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
InteractiveChange event way of doing things
Miscellaneous
Thread ID:
00019237
Message ID:
00019237
Views:
94
I want to call a method but only if my field value is change.

Right now, I was keeping the old value in a property and comparing this with the field value in the Valid() event to know if I have to call my method.

I want to simplify this and use InteractiveChange() event.

But, InteractiveChange() event is fire whenever the user press a key and not only when he exit the field. For example, the value is 33. So, after the first 3, the InteractiveChange() will be fire and also after the second one.

How can I only have one call to my method without having to keep the value in a property?

I can't use OLDVAL() and CURVAL() because OLDVAL() is the value when the user enter the form but might change that value more than one time before saving so OLDVAL() will not represent the actual value of the field.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform