Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running commands inside a memo
Message
From
11/08/1999 15:33:07
 
 
To
11/08/1999 15:08:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252666
Message ID:
00252681
Views:
12
Hi Claudio,

>I have a table with (among several fields) a memo field into which I keep a lot of code (it's suck prg's). In a determined point of my application, I need to run this code. Running into interactive mode, I found a solution: I use TextMerge to create a temporary prg with the code into the memo, then, run the prg. But the problem comes in the runtime: I use the VFP 5.0, and it doesn't compile the prg, so I have a bug in this point.

As you might know, this is possible in VFP 6 SP3. In your case, you could do it with macro expansion if your sure there are no if checks or for loops or anyhting like that. You could build the memo and dynamically remove the ifs if need be.
ALINES(array, memo)
FOR EACH lcCommand IN array
  &lcCommand
ENDFOR
Also do a search for something called CodeBlock. I forgot who did it, I'm sure someone else could tell you about it.
Previous
Reply
Map
View

Click here to load this message in the networking platform