Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the diff: this:: vs. this.parent.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00211896
Message ID:
00211898
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform