Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating your own class
Message
 
 
À
14/04/1998 17:16:48
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00091939
Message ID:
00092206
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform