>I have a procedure. Is stored in a .DBF file.
>I want to create a .PRG file and I run it.
>
>Code:
>This procedure create a .prg file, compile and run it.
>
>PROCEDURE CreateAndRun
> LOCAL cT_Rela, cR_Rela, cProcedure, nSize, nFile, cProgram
> cT_Rela = RelaSQL.T_Rela && memo field
> cR_Rela = RelaSQL.R_Rela && memo field
>
> cProcedure = cT_Rela+CHR(13)+cR_Rela
> nSize = LEN(cProgram)
> nFile=FCREATE("XXX.PRG")
> =FCHSIZE(nFile,nSize)
> =FPUTS(nFile, cProcedure , nSize)
> =FCLOSE(nFile)
>
> COMPILE xxx.prg
> DO xxx.prg
>
>ENDPROC
>
>If run this procedure from VFP it't OK.
>But if I run this procedure from run-time version it not good.
>
>How can i run xxx.prg (from run-time version)???
It sounds like this is VFP before version 6.0 SP3. Is this the case?
George
Ubi caritas et amor, deus ibi est