Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing/deleting a class
Message
 
 
To
27/03/2018 18:57:46
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01658967
Message ID:
01659025
Views:
42
>>Hi,
>>
>>In one of my VCX libraries I have a class "adding_new_record." I want to get rid of it. I searched for this name using GoFish4. The search shows this name only where it is, in the VCX library. Can I safely assume that since the class is not shown in any other PRG or classes when searching in GoFish, it is not being used?
>>
>>TIA
>
>Hi Dmitry:
>
>Another option is to export the class to text (vc2) using FoxBin2Prg (https://github.com/fdbozzo/foxbin2prg/wiki) with any text editor and cut the class like you do in a PRG
>
>In example:
>If your exported VCX have 3 clases (class1, class2, class3) and want to cut class2, its as easy as this:
>
>
>DEFINE CLASS class1 AS CUSTOM
>   ...<code>
>ENDDEFINE
>
>DEFINE CLASS class2 AS CUSTOM  && The class to CUT
>   ...<code>
>ENDDEFINE
>
>DEFINE CLASS class3 AS CUSTOM
>   ...<code>
>ENDDEFINE
>
>
>Once edited and saved, you have this:
>
>
>DEFINE CLASS class1 AS CUSTOM
>   ...<code>
>ENDDEFINE
>
>DEFINE CLASS class3 AS CUSTOM
>   ...<code>
>ENDDEFINE
>
>
>Then just convert this edited vc2 text file to vcx again.
>
>Best Regards!

Thank you, Fernando. What I don't understand is how your method (of exporting the VCX classes to PRG) would be different (or have an advantage) from simply deleting the the deprecated class from the VCX file?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform