>>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 :)