Information générale
Titre:
Sub-Classes / DoDefault()
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
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