Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to parent form
Message
From
09/03/2009 16:55:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Reference to parent form
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01386778
Message ID:
01386778
Views:
105
Dear All

If I have object reference to a object contained in another object contained in some form...
function SomeFunction
lparameters oControl

*oForm=??
How do I grab object reference of a form that contains that object. I remember seeing posts in the past with some looping
up to the form level. Is that only way, or am I overlooking some foxpro function that can get to it straight.

What I need is oControl.parent.parent.parent->> until parent is actually Form itself.

TIA
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Next
Reply
Map
View

Click here to load this message in the networking platform