Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Move A Method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01030579
Message ID:
01030650
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform