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 17:00:17
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00032522
Message ID:
00032648
Views:
42
>>>>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?
>>>
If the object/class is going to be alot like the first two ideas come to mind. Is it enough like the first to really call for anyother instance-would addition underlying classes do the job better and keep the functionality compact. If you need to replicate the methods/properties try the following

In the project window with the class tab active pick/drag and drop the "from" class into another class lib. A copy will be made. In the copy to class lib right click on the copied class and rename it to the new class name. pick/drag and drop the renamed class back to the intended class library and delete the renamed copied one. Open the class and use the class menu edit/remove function to drop the properties and methods you do not want/add your new ones etc. It is good practice to clean up/pack this modified vcx to get the deleted rows for the delete properties/methods out of their for real.
Hope This Helps
Gary
Gary
Helping Make Ideas Reality
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform