Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which method fires ControlSource?
Message
 
 
To
20/06/2016 09:16:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01637465
Message ID:
01637482
Views:
73
>Hi Dmitry,
>
>Keep the "my" code as light as possible. Controls are refreshed more often than you'd expect.

Hi Erik,
Thank you for the suggestion. The 'my' code is very light (I think). Basically I needed to implement binding a textbox to a PK value and showing in the Value property the Description field of the parent table. So in every Refresh method, my code Seeks a record in the parent table based on the PK value of the bound cursor. I also store the 'last' PK value to the textbox property and only Seek when this PK value changes.
I did the work and tested it over the weekend. So far it does not seem to have any negative effects. But I will try this approach with some other controls of the app. The more controls I apply it to, the better results I will have in the long run.
"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