Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hidden Method Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00587667
Message ID:
00587724
Views:
23
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
Map
View

Click here to load this message in the networking platform