Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing/deleting a class
Message
De
27/03/2018 19:42:34
 
 
À
27/03/2018 18:57:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01658967
Message ID:
01659025
Vues:
43
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform