Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to parent object.
Message
From
07/12/2004 13:55:40
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP3
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00967446
Message ID:
00967551
Views:
7
Thanks a lot David, that's exactly what I needed.

Best

>Gary,
>
>This object does not have a containership parent because of the way you created it, therefore it can not use this.parent or thisform.
>
>If you changed your code to:
>
>
>Thisform.AddObject('oMyClass', 'MyClassName')
>
>
>The object would be contained within the form and have a this.parent and can also use thisform.
>
>>I have a class that is added to a form property using :-
>>
>>
>>Thisform.AddProperty('oMyClass', CreateObject('MyClassName')
>>
>>
>>Without passing a reference to the class of Thisform, is there anyway in the class to access ThisForm ? If in the object, I refer to THIS.PARENT, it does not get me a reference to the containing form.
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform