Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the diff: this:: vs. this.parent.
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00211896
Message ID:
00211898
Views:
21
The Parent property gives you the parent container of an object. For example, the parent of a column is the grid in which it is contained. The scope resolution operator (::) allows you to call a method higher in the class hierarchy. For exapmle, if you have a button created from the MyCmdSub class which is a sub-class of the MyCmd class you can call the MyCmd class click event from the button using MyCmd::Click(). The VFP 5 and later DODEFAULT eliminates much of the need for :: because it gives you an easy way to call the method one level up in the class hierarchy which was the most common use for ::.

>I do not understand what the difference between the :: operator and the 'parent' property. Can some one please enlighten me?
>
>^Carl
Previous
Reply
Map
View

Click here to load this message in the networking platform