It depends what kind of code. You've 3 options
- EVALUATE() function
- Macro substitution
- ExecScript() function.
The first 2 can only be used for a single expression/statement respectively.
The later one can run any code. Keep in mind that the ExecScript() dumps the code into temporary PRG, compiles and runs it. It's the same as running external PRG.
>I want to run VFP code stored in a MEMO field at run time.
>What's the best solution?
--sb--