Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling code from a memo field
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Calling code from a memo field
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01029391
Message ID:
01029391
Views:
70
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
Neil Lewis
IT R&D Manager
Velmore Ltd
Next
Reply
Map
View

Click here to load this message in the networking platform