>for lnX = 1 to MLines('MyMemo')
> lcX = MLine('MyMemo',lnX)
> &lcX
>endfor
This won't work if you have FOR/NEXT for example. The way we accomplished this in the past was to compile the memo as a .fxp file and execute it. We are trying to find another way to run the entire code at once.