It depends on VFP version, you're using. If it's VFP6, you would do:
lcTempPrg = m.lcPath + "temp.prg"
if strtofile(myMemo,m.lcTempPrg)
compile (m.lcTempPrg)
do (m.lcTempPrg)
erase (m.lcTempPrg)
endif
In newer versions you can just use execscript function.
>Does somebody has any idea of how to achieve this task?
>
>I save in memo fields validation routines.
>I run those routines then using macro substitution.
>It works but I want to have nesting Whiles and If blocks.
>Any sample code?
>
>thanks in advance,
>Pablo Velazco
If it's not broken, fix it until it is.
My Blog