Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing/deleting a class
Message
De
27/03/2018 19:28:24
 
 
À
27/03/2018 18:57:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01658967
Message ID:
01659024
Vues:
50
>>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!

Fernando, first of all, congratulations for your FoxBin2Prg latest announcement.

Taking up from your advice to Dmitry, let me present to you a similar situation for which I was considering using FoxBin2Prg as you just stated. But with a twist.

I have a bunch of classes incorporating an ActiveX control that I recently upgraded from CLSID x to CLSID y. I looked into the FoxBin2Prg generated code for the library, saw the path to the OCX that could be easily edited, but also a binary information segment that I wouldn't know how to handle. Also, the CLSID is not in sight.

Is there a simple answer to "is it safe to remove the binary info in the value attribute"?

END OBJECT: BaseClass="olecontrol" OLEObject="path to ocx" Value="base64encodeddata="
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform