Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Kevin,
You are suffering from the overloading of the term "Parent" in VFP. A parent class is not the same thing as a parent container. The term "Parent" as you are using it correctly refers to a parent container. To access methods from parent classes you cannot use the Parent. prefix, but must use the "::" scope resolution operator instead (ParentClass::Method). However, a child class inherits all the methods of its parent so you would more likely use This.Method to call a method of a parent class.
A sub-class can access the "Protected" methods of its parent class, only members of the class itself can access a "Hidden" method, so even if your syntax were correct, you would not be able to call the hidden method from the child.
To get to the _HotTrack method from Cnt2, you will have to make the method public and then you can use Thisform.Cnt1._HotTrack to call it.
Pamela
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement