Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy custom class into .vcx file.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00664820
Message ID:
00664824
Vues:
14
Hi, Tim!

>>
So I would like to add it to a .vcx file without recreating it from scratch. Is this possible?
<<

Yes and no <s>!

I don't know any tool to do this (but may be there is anyone!).

But the way is not so strong - I'll try to give you an idea:

- Create a new custom based class MyTestCust in a new classlib xyz.VCX!
- Open MyTestCust in the class designer.
- Create one times all the stuff which exists in your custom class (e.g. two properties, two sample methods with some lines of code, one protected method if you have etc).
- Now close the class designer and open up the xyz.vcx with the command "USE xyz.VCX"! Yes, you're looking right - a vcx file is a dbf like file, you can use it and you can browse it.
- Here you cann find one record with the contents "MyTestCust" in the field ObjName - this record contains all information of your just created test class!
- Now have a look at the several fields to find out where is your test stuff gone! That should give you an idea of an easy way to transfer your code into this vcx using Cut+Paste or REPLACE commends!
- Don't forget to compile the VCX using the COMPILE CLASSLIB command at the end of the REPLACE job!

BTW: You can find informations about the VCX's structure in VFP7\Tools\FileSpec! Open the project 60spec.pjx and have a look at the reports "60scx?.frx"!
SeBaFlu
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform