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