> There is a program out 'somewhere' in the true.exe public domain stuff from
> Tom Rettig that has a prg to vcx converter. I've seen it but I don't have
> it (though I've been looking for it!). I know Rod Paddock has it because he
> demonstrated using it at Foxteach but it was not included in his session
> stuff. It would be VERY handy when modifying base classes and you decide
> to a add a common property or method to ALL of your base classes and don't
> want to go through the steps of the class designer. Cut and Paste in a PRG
> file would be so much EASIER!
>
> Bob
For a .prg to .vcx conversion, there's a simple way: in the .prg, simply
put one Suspend after the object is instantiated. Jump to command
window, and issue
oVar.saveas("scx_file.scx")
and there you are with a .scx - you can edit it later and SaveAsClass
etc.
Much the same way I solved some problems of having two or three form
classes and I wanted to create new .scx using one of them. If I said
"create form" it'd be based on the class written into wizard.dbf or
somewhere. So I said (in the command window:)
x=createobject("other_class")
x.saveas("new_form")
rele x
modi form new_form
....and it worked.