Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy properties/methods from one class to another?
Message
From
16/05/1997 00:16:00
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00032522
Message ID:
00032538
Views:
41
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform