Well, think about it this way: your subclass is actually a dbf with 3
records in it. The source code is not there; this dbf contains some info in
one of the field (CLASSLOC) which tells VFP where is the parent class
located, so VFP goes there and runs that code. If the parent class is not
accessible, the program will fail for obvious reasons.

Exe's have the same problem: the code is not in your class, but in parent
class. If you don't include parent class in the exe, the program will fail.

> -----Original Message-----
> From: [email protected] [mailto:profoxtech-
> [email protected]] On Behalf Of Kent Belan
> Sent: Friday, February 18, 2011 9:49 PM
> To: [email protected]
> Subject: RE: Subclassing
> 
> Hello Tracy,
> I only have one VFP open and testing in dev mode, so no EXE yet.
> 
> I have rebuilt this class several times. I even rebuilt the project.
> 
> I just created a new project and added this new subclassed library.
> 
> When I compile the project it asks to include the base class.
> 
> I don't think it is suppose to include the base class in the project ??
> 
> Looks like I don't understand subclassing very well ...
> 
> I have the VFP base classes all subclassed. I have DBI controls
subclassed.
> 
> I just can't subclass one of my own classes
> 
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Tracy Pearson
> Sent: Friday, February 18, 2011 11:15 AM
> To: [email protected]
> Subject: RE: Subclassing
> 
> Kent Belan wrote on 2011-02-18:
> > Hello,
> >
> > I am building a new project based on an existing project and I want to
> > subclass a few classes from the main project so I can add custom code
> > to the new project.
> >
> > So I create the new class in the new project based on the class in the
> > old project.
> >
> > When I run the application, Error 43 - There is not enough memory to
> > complete this operation.
> >
> > Anyone guess what I am doing wrong ?
> >
> > Thanks,
> > Kent
> >
> > 7
> 
> Kent,
> 
> Are you running a compiled EXE?
> Yes - Open a new instance of VFP, CD to the EXE location, DO AppName.EXE.
> This could help you debug the EXE.
> 
> No - Perhaps the base.vcx is in use in another VFP instance preventing a
> compile. Build the project, rebuilding all files.
> 
> 
> Tracy Pearson
> PowerChurch Software
> 
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to