Wrap the text in single quotes or teach the end user how to use matching and
let them supply the single quotes.

David A. Green
(480) 813-1725
DAG Consulting


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, April 01, 2010 5:54 AM
To: U2 Users List
Subject: [U2] SELECT Statement question

Here's an odd thing,  I have an app that allows the user to pass in a 
select criteria string that is used to find a string containing the select 
criteria.  Like this.

ECMD = "SSELECT ":CP:" BY PART_NUM"
IF SELCRIT <> '' THEN
        ECMD := " WITH PART_NUM LIKE '...":SELCRIT:"...'" 
END
EXECUTE ECMD

This works fine most of the time, but we just noticed that when the select 
criteria is G2A, it takes that to mean a G followed with 2 alpha 
characters, so it matches many more items than desired.  Is there a way to 
force the SELECT to take the criteria as a literal G2A and not as a 
matching pattern?
 

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to