Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you Create a Page Class in VFP 7?
Message
From
26/11/2002 15:26:01
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00726793
Message ID:
00727273
Views:
14
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.
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform