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:
01030695
Views:
14
Actually, on a hunch, I went to cntBase and removed
the method. I then went to cntListPageBase and readded
it.

When I went into cntClientList, all the code was there.





>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
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform