Thom,
After reading the rest of the thread.. what I'd do is just pump the procs into the proper memo fields. Do it to a test classlib first though because it's hard to get right the first time. Look at the memos of a "real" classlib first. VFP is expecting things to be formatted exactly or it will either give up loading the class.. or page fault.
You need to make the necessary entries in the Methods and Reserved3 memos. The Methods in Reserved3 have an * before the name. They must appear in the exact same order as the custom methods in the Methods memo. You have to have PROCEDURE and ENDPROC to start the methods and I don't think it's tolerant of even extra CRLF pairs.
I'd start like this
create classlib test1
create class TheClass of test1 as cCustom from MyBaseClasses
close the class designer
use test1.vcx
skip 1
ConvertProcToClass( "TheProcFile.prg" )
modi class TheClass of test1 && see if it worked
You could also just populate the Reserved3 memo with names, and Methods with empty procs and then use WriteMethod() to fill them in on a second pass.
>Yes, I saw that function yesterday, but more importantly, I need to know if I can add the METHOD to the CLASS programmatically before I use the WriteMethod().
>
>If I use the DEFINE CLASS command, will I have the ability to save this new class to a .VCX file? If so, I could then use the WriteMethod() function to add my methods to the class.