General information
Category:
Coding, syntax & commands
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only