Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
You got to keep 'em separated
Message
De
15/03/1999 08:11:35
 
 
À
14/03/1999 22:00:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00197449
Message ID:
00197555
Vues:
20
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform