Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6 is not able to locate a parent class
Message
 
 
À
20/04/2007 16:10:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Divers
Thread ID:
01218482
Message ID:
01218487
Vues:
14
>I have a class that is based on a single parent class but when I got to instantiate the subclass VFP 6 throws an error: "Class definition ACEAPIABSTRACT is not found.
>
>parent class is defined as: DEFINE CLASS aceAPIAbstract as Custom and lives in rpds_ace_abstract.prg
>
>subclass is defined as DEFINE CLASS rpdsACEapi As aceAPIAbstract and lives in RPDS_ACE_api.prg
>
>I'm creating the object with the following syntax:
>
>loACEAPI = NEWOBJECT( 'rpdsACEapi', 'rpds_ace_api.fxp', '', parm1, parm2, parm3, parm4, parm5 )
>
>Any ideas how I can trouble shoot this?

Do you have SET PROCEDURE TO your first program somewhere in the code?

Without having procedure set how VFP will know where to find class definition for the parent?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform