Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageFrames...slow loading.....
Message
 
À
22/10/1998 11:50:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149459
Message ID:
00149504
Vues:
17
>I have a pageframe control with 8 pages, 3 of which have a grid, the others just have text fields...
>Ever since I have added the grids to the 7th and 8th pages, the loading time for the form/pageframe has been dirt slow... any suggestions would be greatly appreciated....
>
>sc

I had the same problem, but it was caused by the number of controls not grids. My load time was cut by about 75% (or sped up 400%) when I created a class for my pageframes. Each page other than page1 is made into a subclass by selecting the entire page (ctrl-A) and doing Save As/Class. Then blank out each page and put code in the activate event of the individual pages of the pageframe to build the page. This will build the page when you need it, not when the pageframe loads. The down side is each page will come up a little slower the first time you look at it. I learned to do this from the VFP Developers Guide version 5 or 6, in the Chapter for Optimizing Applications, Heading Optimizing Forms and Controls, subheading Dynamically Loading Page Controls on a Page Frame. Specifically page 405 in my version 5 guide. I think this is the way to go, especially if your users won't always look at the pages with the grids on them.
hth,
Marcus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform