Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
You got to keep 'em separated
Message
From
15/03/1999 08:11:35
 
 
To
14/03/1999 22:00:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00197449
Message ID:
00197555
Views:
19
>>Can you keep parent classes in a separate APP from the working child classes?
>>
>>When you compile a child class into an APP, FOXPRO will automatically INCLUDE all the parent classes.
>>
>>I want to EXCLUDE the parent classes and keep them in a separate APP.
>>
>>"SET CLASSLIB to PARENTCLASS in PARENT.APP" doesn't seem to work because I get that wonderful error message "CANNOT INSTANTIATE CLASS ...CANNOT FIND PARENTCLASS.VCX"
>>
>>Any ideas?
>
>
>You can't.

Yes you can

At least if you run the EXE where the parent class is included
create 2 project
in one (parent) create parent classlib with a test class
also create a child classlib with a test1 class based on test
exclude child classlib from the project
create the following as main
set classlib to parent addi
set classlib to child in child.exe addi
x=createobject("test1")
x.hello()
create a second project where you have the two classlib again
this time exclude the parent
* Child Main
set classlib to child addi
build both
run
enjoy :)

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform