Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What exactly does THISFORM.Refresh Refresh?
Message
From
05/02/2008 16:04:01
 
 
To
05/02/2008 15:09:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01289119
Message ID:
01289780
Views:
16
>Yes, that makes sense. Thanks for the insight. I have been periodically frustrated by selecting a page and finding its data did not keep up with the current record. Solved this by putting this.refresh in the activate event of the page but this still occassionally leaves problems. I suppose I could cause the pageframe's refresh to loop through the pages and refresh each when the pageframe is refreshed thereby keeping everything current but with a performance penalty. My guess is there's a reason why this isn't the default behaviour so I haven't done it.

The reason is ... the performance penalty. The idea is that the content of those other pages is irrelevant when not displayed.

Manipulating the refresh is indeed best managed using activate events. So one needs not only thorough understanding of the Refresh system, but also of the Activate Events. A bad implementation can imply that at times a control is - to one's surprise - not refreshed or is refreshed many times where one time is enough.

Years ago I wrote the article 'Activating the Refresh', but it is in Dutch: http://www.viafox.nl/articles/Activate%20the%20Refresh.html
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform