Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute PRG Externally
Message
De
29/11/2000 10:57:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446771
Message ID:
00446776
Vues:
8
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform