Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute PRG Externally
Message
From
29/11/2000 10:57:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00446771
Message ID:
00446776
Views:
13
>Hi,
>
>I was told that there exists a file utility that allows you to execute a PRG externally from the '.exe'. I wish to create a table in an app that stores several prg's in memo fields and I want to execute this code from it. This code will be maintainable so it can't be compiled into the exe. The client will not have VFP on site so the prg must be able to be modified and run seamlessly. I would greatly appreciate it if anyone could point me in the direction of a file or routine that will assist me in this problem. Thanks much in advance.
>
>Bill Todoro
>WFT Data Services

As of SP3, you can COMPILE at run-time.
To do this with a memo field, e.g.
** assuming table already open
Select mytable
lcTempProg = ForceExt(ForcePath(Sys(2015),Sys(2023)),"prg")
Copy Memo memo_field To (lcTempProg)
Compile (lcTempProg)
Do (lcTempProg)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform