Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you Create a Page Class in VFP 7?
Message
 
To
26/11/2002 15:26:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00726793
Message ID:
00727283
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform