Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a .vcx from .prg
Message
De
19/09/1997 22:18:15
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00049620
Message ID:
00050825
Vues:
49
>>Can anyone tell me an easy way to use this code as a class library >>instead of a program file, without sending it to my UNIX box to >>change the file name? >> >>Eric Kleeman Boise >Eric, > >SET PROCEDURE TO YourPrg.PRG ADDITIVE > >Once you do that all of the clas defintions will be available to you. Then, you do this: Instance_ol=CreateObject("ClassFromYourPrg") Instance_ol.SaveAsClass("YourClassName","YourVcxFile") There will be some trouble if you have a complete class hierarchy in your prg, since the classes inheriting anything from upper classes will have pointers to YourPrg.fxp, so you'd have to export (as mentioned above) the upper classes first, then edit your .prg to remove references to the .prg and Set ClassLib to YourVcxFile, recompile, and then go with the next level of classes. Finally you end up with empty .prg and all the classes in YourVcxFile. Can be done within couple of hours, provided you backup first :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform