>Each command in the memo file has to be delimited in some way (ie. [REPLACE mytable.... WITH xxx]) then you need a simple loop to parse and run each command with &. I used to store all logic for reports in memo files in the old days so I could make changes or additions without needing to recompile. Below is the code I used:
>
I would stay away from logic like this, lest you be fooled into thinking that this code will work on memos that contains structure statements (IF, FOR EACH, DO CASE, etc).
Randy Pearson's CodeBlock handleed this fairly well, but there was still a list of things it couldn't handle, and CodeBlock is no tiny piece of work. Now that we have VFP6 SP3's COMPILE at runtime, this is totally the way to go...
Erik Moore
Clientelligence