Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobjects from classes defined in external .prg
Message
From
01/10/2002 07:51:47
 
 
To
01/10/2002 07:37:20
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00706291
Message ID:
00706295
Views:
16
I think that as long as your prg is included in the project, it should work just like you've written it. Include the prg either by actually including it in the project, or by explicitly using Set Procedure To MyCmdGroup.prg additive

Alan

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform