Question : Strip off double quotes from string and replace with single quote

I'm not sure if this is possible or not, but I would like to put a list of numbers in a string:
List = '702','703',744',769'
Then use List in the WHERE Statement like so:
WHERE INLIST(PADL(ALLTRIM(STR(Batch.CustID)),3,"0"),List);
The problem I have is that it is taking my List and putting a double qutoes in front and back of my string so it ends up looking like this:
"'702','703',744',769'"

How can I strip off the double quotes at the front and back of the string?

Thanks,
Mark

Answer : Strip off double quotes from string and replace with single quote

What I would do is use the text endtext to build your select statement
1:
2:
3:
4:
5:
6:
7:
8:
9:
local lcList, lcCmd
lcList = "'702','703',744',769'"

TEXT TO lcCmd NOSHOW FLAGS 1 PRETEXT 1+2+4 TEXTMERGE
    Select * from Sometable WHERE INLIST(PADL(ALLTRIM(STR(Batch.CustID)),3,"0"),<<lcList>>);
ENDTEXT
&lcCmd
* or sqlexec(1,lcCmd,"c_Results")
* or execscript(lcCmd)
Random Solutions  
 
programming4us programming4us