Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy properties/methods from one class to another?
Message
De
16/05/1997 00:16:00
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00032522
Message ID:
00032538
Vues:
38
>>Is it possible to copy or move a method or property from one class to another? I know it's possible to move classes from one .VCX to another, but what about the individual methods and properties within a class?
>
>I think the only way is to create the new method.
>Cut and paste the code from the first method to the second one.
>
>BTW, if you want copy a lot of methods from one class to another, you can use the class browser and click on the 'view class code' button and cut the code from this window.
>
>HTH :-)
How about the readmethod method to copy method source code?
Perhaps some thing like
Create object, then create new method then newmethod.value=othermethod.readmethod? (if value is the right place to put the source code)
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform