Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a PRG from a VFP 5.0 EXE app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00101116
Message ID:
00101171
Vues:
20
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!).
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform