>Does anybody know how to run code that is stored in a memo field in a table? The code isn't just one line either but may be an entire procedure or function. I considered saving the contents of the memo field to a temporary prg and running that but there has to be a more elegant solution.
Mark,
Chcek teh files here for a reference to codeblock, that will help you in what you are trying to do. Short of using Codeblock, in version prior to VFP 6.0 SP3, you cannot run a PRG in the runtime environment because ther3e is no compiler to compile the code in the runtime.
SP3 added the COMPILE command to the runtime library, so you can:
COPY MEMO MYMemo TO Temp.prg
COMPILE Temp.prg
DO Temp