Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Parent Class Method
Message
From
06/02/2007 09:09:00
 
 
To
05/02/2007 16:27:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01192591
Message ID:
01192731
Views:
14
>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 !!!!!!!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform