>>I have a button from which I want to create a class. How can I do that?
>
>Hmmm, have something like this
>
>text to lcClassDefinition noshow
> define class myClass
> ....
>endtext
>
>strtofile(lcClassDefinition, 'myProgram.prg')
>compile myProgram.prg
>
>
>From the top of my head and not tested.
I have a hunch that this is not what he wanted. However, that's exactly what he said ;).