General information
Category:
Forms & Form designer
>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.
Maybe I am missing something, but whay can't you use the LostFocus event?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only