Try with CodeBlock Class
http://www.cycla.com/software/codeblock.htmHope This Help.
--------**-----------*------------**--------------
What is CodeBlock?
CodeBlock is a runtime FoxPro interpreter. It allows you to execute blocks of uncompiled code that resides in memo fields, files, or character strings, even in the runtime environment. There are two versions available here and both have the same file name, CODEBLCK.PRG.