Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling code from a memo field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01029391
Message ID:
01029392
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>I have a piece of code held within a table called rules in a memo field called rule. I want to execute that code in the field within a program.
>
>The code stored in my memo field is:
>
>
>SELECT packages
>SCAN WHILE NOT EOF()
>	IF 'TECHNICAL'$mainkey AND emailed=.f.
>		replace action WITH 'Send Email to Design'
>	ENDIF
>ENDSCAN
>
>
>My program basically calls:
>
>
>SELECT rules
>lcrules=""
>lcrules=rules.rules
>&lcrules
>
>
>But nothing happens. My code works fine its just the calling of my rule does not work. Can anybody help me please?
>
>Many Thanks


I don't know what Rules values are, but try:
SELECT rules
lcrules=""
lcrules=rules.rules
EXECSCRIPT(lcrules)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform