Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which method fires ControlSource?
Message
 
 
To
17/06/2016 16:25:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01637465
Message ID:
01637467
Views:
70
>When you bind a textbox to a field via ControlSource (e.g. TableName->Some_field), VFP updates the Value property on every record move of the TableName. I think that "under the hood" the update takes place in some method of the textbox.
>Would it be correct to assume that the value is updated in the Refresh method?

>
>Yes. It would also be safe to assume that the ControlSource is updated from the Value in the Valid method.

Thank you. Refresh fires very often (I understand, every time the form goes into focus) which means that internally VFP is very fast when it comes to setting the Value property to a new value. I am just thinking of adding some of 'my' code to the Refresh.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform