Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Code from memo field
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00330914
Message ID:
00331222
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform