Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a PRG from a VFP 5.0 EXE app
Message
De
22/05/1998 13:07:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00101116
Message ID:
00101225
Vues:
22
>True, but like I said, it was only one line of code in my situation. In fact, in my case, the memo field was just a logical expression like:
>
>InList(acct,23,45,89) or Between(acct,1,18)
>
>Then I could do:
>
>lField = table.memofield
>If &lField
>Do something
>EndIf
>
>Then, I could change the memo field at run-time and the changes would take effect immediately.
>
>Another alternative would be to put your code in a prg, run it, then copy the contents of the fxp into the memo field. I think that works, but you lose the ability to change code at run-time without having a compiler.
>
>
>>Note that macro substitution won't work if you have more complex structure like SCAN, IF or DO WHILE.
>>
>>>I've supplied code in memo fields with an executable before. Of course, in my situation it was only one line of code. I used macro substitution on the memo field. You could do the same by reading the memo field one line at a time. But if you have a lot of code, it may get slow, I'm not sure about that. Anyway, it's an idea (and it works, too!).

I think you need CODEBLOCK. Search on this name in the files section. Allows creation/storing/running 'source' at exe time. I've used this for quite a while to allow remote diagnostic/fix for site w/o VFP installed and I need some programmatic stuff.
HTH
Gary
Helping Make Ideas Reality
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform