Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use data from a memo field for SQL expression(s) 1

Status
Not open for further replies.

Millard

Programmer
Feb 22, 2001
17
0
0
US
I would like the user to enter expression(s) criteria into a
memo field for SQL retreival. Can this be done with the STRTRAN() OR EVALUATE() function?
 
Assuming that the memo field contains a valid FoxPro command, a simple method would be:

char1 = alltrim(memofield)
&char1

Jim
 
EVALUATE() only 'evaluates' an expression, it does not execute a command.

I also use contructions like Jim's. For most cases it is the easiest way.

HTH,
Weedz (Wietze Veld)
veld4663@exact.nl

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top