Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe with dynamic pages
Message
De
02/10/1997 08:16:10
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Pageframe with dynamic pages
Divers
Thread ID:
00052826
Message ID:
00052826
Vues:
81
I have a form that needs pageframe with dynamic number of pages. The number of pages changes according to the number of detail records in the one to many form. I use a view to hold the few detail records. The number of pages range from 1 to 11. The average number of pages for each master record is about 2. There are altogether 5 different type of pages. The first four types can have only 1 page each. In other words, page1 is type1, page2 is type2, page3 is type3, page4 is type4 and the rest are type5. Each is made up of slightly different data. It can have any combination.

Has anyone done such thing before?

My question is: Which is a better or faster implementation of this dynamic pageframe? I can think of two ways. One way is to put the 11 pages and hide the pages that are not required. The other way is to add pages according to the data enquired. In the first way, I just load all the pages and change the pagecount and pageorder. In the second way, I need to addobject (pages) according to the data. In other words, for each query, I need to add and remove pages.

It sounds like the first way is better. Isn't it? Any opinion?
Répondre
Fil
Voir

Click here to load this message in the networking platform