Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class does not see its parent
Message
From
15/02/2011 23:06:24
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01500327
Message ID:
01500328
Views:
75
This message has been marked as a message which has helped to the initial question of the thread.
If the parents methods are not hidden or protected then you should be able to just this.oSomeObject.method() to see it. I don't think that this.oSomeObject would have a parent.

>Hi everybody,
>
>I have a custom class (defined in a program) that has an object property defined like this
>
>oSomeObject = null
>
>In the Init I instantiate this object using
>
>this.oSomeObject = newobject('MyClass','myClasslib.vcx')
>
>Now, from that class I want to invoke methods of 'its parent'. However, oSomeObject doesn't know that it's a property of another class and therefore returns U when I check for its parent.
>
>What can I do to make it aware of the 'parent' class? Do I need to add Parent property and populate it? And if yes, how can I avoid dangling references?
>
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform