Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't execute parent class method
Message
De
14/08/1998 17:48:05
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, États-Unis
 
 
À
14/08/1998 11:50:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00126940
Message ID:
00127057
Vues:
18
Don't get your hopes up -- I don't fully understand your problem, and haven't yet gotten beyond using the VFP base classes. But since nobody else has replied yet, here's an (un)educated guess:

VFP is reporting that "Property SETFOCUSTOFIRST is not found" when you clearly intend for it to be a method, not a property. Is SetFocusToFirst properly defined?



>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?
"Ignorance more frequently begets confidence than does knowledge."
-- Charles Darwin
"I am invincible! Invincible...OWWWWWWWW!"
-- Homer Simpson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform