>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.