Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Move A Method
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01030579
Message ID:
01030650
Views:
17
Kevin,

Copy all the method code out to a safe place. Remove the method from cntBase, add the method to cntListPageBase. You should be ok in the grandchild classes.

>I have the following hierarchy of container classes. I inadvertently created a method
>called AddRecord on cntBase, the root.
>
>In the grandchild classes 'cntClientList', 'cntContactList' and 'cntProjectList' I added
>code in the AddRecord.
>
>How to I move the method to 'cntListPageBase' without losing the code?
>
>
>cntBase
>   |
>   +- cntListPageBase
>   |  |
>   |  +- cntClientList
>   |  |
>   |  +- cntContactList
>   |  |
>   |  +- cntProjectList
>   |
>   |
>   +- cntRowBase
>      |
>      +- cntClientRow
>      |
>      +- cntContactRow
>      |
>      +- cntProjRow
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform