Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6 is not able to locate a parent class
Message
 
 
To
20/04/2007 16:10:12
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01218482
Message ID:
01218487
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform