Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
InteractiveChange event way of doing things
Message
From
04/02/1997 14:11:56
 
 
To
04/02/1997 13:50:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00019237
Message ID:
00019242
Views:
40
>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?
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform