Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running compiled code from a string or MEMO field
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00635837
Message ID:
00635845
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>Is there a way for me to execute compiled code stored in a MEMO field (similar to what is being done for .frx, .scx, etc.) ?
>
>I am thinking of an implementation using this method to execute some of my codes from a table instead of from external .prgs.
>
>If not, are there tools which allows me to do that ?
>
>Please advice.
>
>Cheers.
>Peter

If you have VFP6 with at least SP3 than you can use COMPILE command
lcFileName = Sys(2015) + ".prg"
Strtofile(MyMemofield, lcFileName )
Compile (lcFileName)
DO (lcFileName) 
In VFP7 you can use ExecScript
ExecScript(MyMemofield)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform