Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Parent Class Method
Message
De
06/02/2007 09:09:00
 
 
À
05/02/2007 16:27:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01192591
Message ID:
01192731
Vues:
16
>Think I'm just having one of those days. :-)
>
>I'm trying call a parent class's method programmatically. For example:
>
>I create the object in the program
> loTextObject = createobject("TextClass")
>TestClass is sub-classed off TextBaseClass
>
>How do I call one of TextBaseClass's methods directly?
> loTextObject.TestBaseClass.Method
>I know the above isn't right, but might help illustrate.
>
>Thanks

OK, I'm either missing it or not explaining the question correctly. :-)

I'm creating the object in a PRG file as shown below:
loTestObject = createobject("TestClass")
The above has a Save method. If I wanted to call that, all I have to do is:
loTestObject.Save
but rather than calling the object's Save method, I want to call the parent class's save method in the PRG using a similar syntax to the above, if possible. Something along the same lines as a:
loTestObject.Parent.Save
GOOOOOOOO BUCS !!!!!!!!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform