Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createobjects from classes defined in external .prg
Message
 
 
À
01/10/2002 07:37:20
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00706291
Message ID:
00706293
Vues:
23
Hi!

Use SET PROCEDURE to load PRG with your objects defined. Then use CreateObject or AddObject.

There is also a new method/function - NewObject, that allows do not use SET PROCEDURE and SET CLASSLIB to load classes into memory.

HTH.

>I'm wondering how i can make this work.
>
>How do i create an object whose class is defined in a myclass.prg
>from within an other .prg
>
>example
>I've defined a cmdgroup with four buttons in a say mycmdgroup.prg
>I want to add this mycmdgroup class to a form i defined in myform.prg
>I also create the form within myform.prg with ox = createobject("myform")
>How do i make ox.addobject("cmdgroup1","mycmdgroup") work
>
>This may sound a little bit academic but i hope it helps me understand more of foxpro.
>
>tia, victor
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform