Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating your own class
Message
 
 
To
14/04/1998 17:16:48
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00091939
Message ID:
00092206
Views:
18
Mark,

You have to SET PROCEDURE TO XYZ.PRG ADDITIVE and then use the pageframe's AddObject() method to actually use your Page class. The prevents you from visually designing your PageFrame which is a huge drawback IMHO. There maybe a better way to accomplish what you are trying to do with a PageFrame subclass.

>I have created my own class that is a child of the class PAGE.
>
>Example:
>
>DEFINE CLASS newpage AS Page
> PROCEDURE Click
> [code inside Click]
> ENDPROC
>ENDDEFINE
>
>I can't figure out how to implement it into my project. I first got errors saying I couldn't put the CLASS definition inside an EVENT. So I moved it to a startup like program... this way I could run the program and then 'do report c:\test\report.scx'.
>The program runs until it gets to the ENDDEFINE then it ends.
>
>
>Why won't it run the DO command I have in the next line?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform