Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling code from a memo field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01029391
Message ID:
01029392
Views:
20
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform