>Hi everybody,
>
>My colleague came to an ingenious idea of creating class definitions on the fly in a program, setting procedure to this program and then running this code.
>
>It works fine in development, but doesn't work in exe.
>
>Here is his original code (well, with my cosmetic changes <g>)
>
>
>lcFile = GetTempFile("prg")
>=strtofile(m.lcRepText, m.lcfile)
>set procedure to (m.lcfile) additive
>
>Now, I think, the COMPILE piece is missing. The question is, if I add
>
>lcFile = GetTempFile("prg")
>=strtofile(m.lcRepText, m.lcfile)
>compile (m.lcFile)
>set procedure to (m.lcfile) additive
>
>
>Would it work? Or I should use set procedure to forceext(m.lcFile,'fxp')
>
>Thanks in advance.
Just to add, you shouldn't need the set procedure part if you'll instantiate your class as
oNew=newobject("myclass", m.lcfile)