Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to parent object.
Message
From
07/12/2004 08:54:58
 
 
To
07/12/2004 08:47:21
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:
00967450
Views:
22
Why You not use thisform instead of this.Parent If You want to get access to Form object? And why You add object as Propertie of the form but not use thisform.AddObject('oMyClass', 'MyClassName')?


>Hi,
>
>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.
>
>Any ideas?
>
>Thanks,
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform