Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6 is not able to locate a parent class
Message
De
23/04/2007 12:50:46
 
 
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:
01218978
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform