Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you Create a Page Class in VFP 7?
Message
 
À
26/11/2002 15:26:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00726793
Message ID:
00727283
Vues:
18
Gordon,

Good suggestions!
I suppose this won't be the last time that I am caught by the differences between using OOP to add an object and addobject :(.
As long as the 'where to look' clicks in relatively fast ...

>I assume you set the ActivePage in the cpgfDirector::Init to solve this.
>
>cpgfDirector::Init
>
>DODEFAULT()
>
>WITH THIS
>* kill the old pages; if they exist
>FOR i = .PAGECOUNT TO 1 STEP -1
>.REMOVEOBJECT(.PAGES(i).NAME)
>ENDFOR
>.PAGECOUNT = 0
>
>
>* additional loading statements
>* ccntNames is a container with First Name, Last Name objects...
>this.addobject("ccntData", "ccntNames", parameters...)
>WITH .ccntData
>.visible = .t.
>ENDWITH
>
>
>
>.ACTIVEPAGE = 1
>ENDWITH
>
>Keep in mind that you need to make them visible.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform