Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe refresh question
Message
From
24/07/2007 16:12:21
 
 
To
24/07/2007 16:08:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01243267
Message ID:
01243276
Views:
27
>>>What is the best way to make sure all the pages of a pageframe are always showing current data? It seems like the refresh of the non top pages must be called explicitly to keep them current. Otherwise, if the page is showing data from a child table, it may not be the correct record until it is refreshed. I have tried various ways to deal with this including this.refresh in the activate event but I can't settle on the best method.
>>>
>>>Thanks for any insights.
>>
>>Why would you want to refresh data (and slow everything down) on pages that you can't see?
>
>I don't necessarily. I just want the user to see the proper child data when he/she clicks on a different page. Not data that may have belonged to a previous parent record.

Another way you could do it is to use the UIEnable method of a control to refresh the new page's controls. I've done it this way in the past by having a control that automatically gets added to each page when the page frame Init fires. You could possibly do it with BINDEVENT, also, but I've not done it that way.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform