Marty ---
You can cheat :-)
Go to the Class Browser and browse the target classlib. Add a Custom object with the same name as your code library (BusRules?)......do NOTHING to the new class. Exit Class Browser. USE vcxfile.VCX ... BROWSE ... look for Uniqueid="Class" and Objname="BusRules".... Go back to command window and MODI COMM your PRG. Select all property lines and Ctrl+C (Copy).....go back to the BROWSE. Select Properties memo field. Ctrl-V (paste) properties there. Repeat this process with method code, pasting it in the Methods memo field. Close the browse and close the VCX file. Now trype COMPILE CLASSLIB {vcxfile}.....
Voila!
>Okay, so you've designed a whole set of classes inside a PRG. I.e.
>
>DEFINE CLASS BusRules AS Custom
> Blah = Blah
> Blah = Blah
> Blah = Blah
>
> PROCEDURE Blah
> Blah
> Blah
> ENDPROC
>
>ENDDEFINE
>
>Now, you decide that you really want them to be in a VCX. Is there a way? The Help for ADD CLASS is pretty clear in saying you can't. This is driving us crazy. I hate to have to tell them to cut and paste all of it into methods/properties.
>
>Help!
>
>Marty
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05