Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to Remove Method ?
Message
From
29/01/2003 14:27:41
 
 
To
29/01/2003 11:14:25
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00746719
Message ID:
00746843
Views:
19
1. Create a new class that is based on the old class. Don't copy any methods or properties because they still exist.

2. Copy the information from the method into some temporary text file.

3. Delete the method.

4. Create the old method in the new class.

5. Paste from the text file into the new class, new method.


At least this way you have both objects. The parent has the simple stuff, the child is just little more complex with your other method still there. Maybe you could program the lines above to automatically perform the same actions.

USE vcx
locate object
copy memo field with code to text file
process text file for custom method (PROCEDURE blahblah... process till ENDDPROC)
place method text in newtext file
place all extra into oldtext file
copy oldtext file into memo


How to create the new object is up to you to figure out.
locate new object
Paste in the method you extracted above into newtext file

compile classlib ...
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform