Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-Classes / DoDefault()
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Sub-Classes / DoDefault()
Miscellaneous
Thread ID:
00572362
Message ID:
00572362
Views:
47
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?
Next
Reply
Map
View

Click here to load this message in the networking platform