Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6 is not able to locate a parent class
Message
From
23/04/2007 12:50:46
 
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:
01218978
Views:
15
OK, so if I have pcMyProperty defined in the parent class as:
PROTECTED pcMyProperty

Each subclass would have it's own pcMyProperty with both pointing to the value of the parent. If I then defined a pcMyProperty in subclass #1 it would then have its own value that is now different from the parent right? Subclass #2, which doesn't have this property defined still is using the value set within the parent correct?

Let's take this example:

Subclass #1 reads a text file to obtain the location and file name of the log file. It then updates the pcMyProperty property:

This.pcMyProperty = 'c:\textfile.log'

This updates the pcMyProperty value of the parent 'c:\textfile.log' correct? Now both subclassees should have This.pcMyProperty = 'c:\textfile.log' correct?

Am I on the right track?

Thanks,
Bruce
Bruce Crane
Software Engineer
Regulus Integrated Solutions, LLC - Napa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform