>I have a table of memo fields containing foxpro code snippets. At runtime, I want to be able to dynamically assign the contents of one of memo fields to a method on my form, then call that method. This is easily enough accomplished with macro substitution when the code is a single line statement, but does not work with more complex code consisting of more then one line. I am running VFP 6. I've heard something similar to this ability exists in newer versions of VFP but upgrading is not an option.
If you have VFP6/SP3 or later, you can write your memo field out to a file, and you can COMPILE that file and then execute it just like any other VFP program.