Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code from a database field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00736050
Message ID:
00736118
Views:
14
>>I've done something similar to this, but I wasn't keeping the .fxp in the memo field, I kept the .prg in the memo field, then copied the contents of the memo field to a .prg file, compiled it, then ran it.....something like this:
>>
>>lcProgramCode = myTable.myMemoField
>>lcSaftySetting = SET("Safety")
>>SET SAFETY OFF
>>STRTOFILE(myTable.myMemoField, 'c:\Temp\myProgram.prg', 0)
>>SET SAFETY &lcSaftySetting
>>COMPILE c:\temp\myProgram.prg
>>do c:\temp\myProgram.prg
>>
>
>Take a look at execscript() because it does all that for you.
>
>Einar

yeah I was just looking at that.
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform