Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a single Page out of many be made invisible
Message
De
28/12/2007 13:01:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01278020
Message ID:
01278156
Vues:
21
>Hi Craig
>
>>You can use PageFrame.RemoveObject() to completely remove the page.
>
>I probably can, but I am afraid it will break some references once the page is removed.

And maybe you can't, if the pages were defined at the pageframe class level. .Removeobject() can remove only what the instance has .AddObject()ed or .NewObject()ed, not what was already defined in the class. If your baseclass pageframe is defined as having .pagecount=2, you'll have trouble removing page1 and page2 - page3 and on shouldn't be a problem (unless, of course, you play dirty and something somewhere actually says thisform.pgf.page5.ctl5.value=42, and you just insisted on removing page5, then sure it'll break).

I've had some success with returning .f. from page's init - that works but you need to know early on whether you want to show a page or not.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform