Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a .vcx from .prg
Message
From
19/09/1997 22:18:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00049620
Message ID:
00050825
Views:
44
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform