Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running procedures stored in memo fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00304122
Message ID:
00304271
Vues:
33
Hi Jim,

I've been storing compiled FXP files in memo fields since the days of FPD 2.0, extracting them with COPY MEMO, and running them -- never had a problem (at least, until I changed the code and forgot to put the newly compiled FXP in the table :-D --- )

Don't know if that's an option here, but if so, it might be another way out...

>>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
>
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform