Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class does not see its parent
Message
From
16/02/2011 04:49:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
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:
01500338
Views:
73
This message has been marked as a message which has helped to the initial question of the thread.
>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')

This is parentless instantiation. If you want the object to have a parent

this.newobject("oSomeObject", "myclass", "myclasslib")

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform