Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-Classes / DoDefault()
Message
From
23/10/2001 18:59:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00572362
Message ID:
00572370
Views:
22
>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?
Yes.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform