>add a property that would flag if there was a change in the data
>set it to .t. in the InteractivChange()
>set it to .f. in the LostFocus (and call the method if needed)
Thanks, it still need a property but I like it better than what I currently have.
I will change my baseclass controls to handle this.
1. Add a property lCheckIfChange in each of them. When it will be .T., it will take care of lModified in point 2
2. Add a property lModified in each of them which will be turned to .T. by the InteractiveChange() if lCheckIfChange is .T.
3. Add a property cMethod in each of them which will hold the name of the method to execute if lModified of the control is .T.
I think that is the simpliest way. Comments?
But, wouldn't it be simplier if we would have got a InteractiveChangeValid() event which will execute only if the content of the field has changed at the Valid time?