Information générale
Titre:
Can't execute parent class method
I have a container class that is a subclass (surprise!) of another class. One of the buttons in this class has the following in its Click method:
IF DODEFAULT()
*-- Properties of the container class
THIS.Parent.chkSearch.Value = 0
THIS.Parent.chkSearch.ToggleOff()
*-- Methods of the container class
THIS.Parent.ConnectInput()
THIS.Parent.EnableInput()
*-- Native FoxPro method
THIS.Parent.Refresh()
*-- Method of the container class' parent class
THIS.Parent.SetFocusToFirst()
ENDIF
This code executes just fine until I get to the SetFocusToFirst method. FoxPro gives me an error "Property SETFOCUSTOFIRST is not found" I am baffled because in the watch window, THIS, THIS.Parent.Name, PEMSTATUS(THIS.Parent, "SetFocusToFirst") all show the correct values. What am I missing here?
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