>Hi,
>
>Is there a way for me to execute compiled code stored in a MEMO field (similar to what is being done for .frx, .scx, etc.) ?
>
>I am thinking of an implementation using this method to execute some of my codes from a table instead of from external .prgs.
>
>If not, are there tools which allows me to do that ?
>
>Please advice.
>
>Cheers.
>Peter
If you have VFP6 with at least SP3 than you can use COMPILE command
lcFileName = Sys(2015) + ".prg"
Strtofile(MyMemofield, lcFileName )
Compile (lcFileName)
DO (lcFileName)
In VFP7 you can use ExecScript
ExecScript(MyMemofield)
--sb--