Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub-Classes / DoDefault()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Sub-Classes / DoDefault()
Divers
Thread ID:
00572362
Message ID:
00572362
Vues:
46
When you have a class hierarchy, for example
MyForm => MyFormClass => Form (VFP Base Class)

And I have a method in MyFormClass that has some code in it, but in the MyForm there is no code, when I call the method on MyForm does it automatically just go straight to the code on MyFormClass, or does it go through a default (internal) piece of code in the MyForm version of the method.

For example, lets use the method MyMethod

If MyForm.MyMethod is blank
But MyFormClass.MyForm has code like
LPARAMETER oMyObj
this.oProp = m.oMyObj

If I call MyForm.MyMethod, will Foxpro internally go to MyForm.MyMethod see there is no code and call a DoDefault() or will it just jump straight to the MyFormClass.MyMethod

I know in the Debugger it will jump straight to the MyFormClass, but internally is this what it does?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform