Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running procedures stored in memo fields
Message
 
To
15/12/1999 11:24:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00304122
Message ID:
00304188
Views:
31
>Does anybody know how to run code that is stored in a memo field in a table? The code isn't just one line either but may be an entire procedure or function. I considered saving the contents of the memo field to a temporary prg and running that but there has to be a more elegant solution.

Mark,

Chcek teh files here for a reference to codeblock, that will help you in what you are trying to do. Short of using Codeblock, in version prior to VFP 6.0 SP3, you cannot run a PRG in the runtime environment because ther3e is no compiler to compile the code in the runtime.

SP3 added the COMPILE command to the runtime library, so you can:
COPY MEMO MYMemo TO Temp.prg
COMPILE Temp.prg
DO Temp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform