>>>There's a big difference between "'AAAA','BBBB','CCCC'" and 'AAAA': the quotes.
>>That't right, but without double quotes there will be three values, not one :)
>
>Yes, but probably this is the difference that makes it to work in the second case and not to work in the first one.
Truly speaking I tried all versions of substitution here, nothing works in case it is view parameter, and "'AAAA','BBBB','CCCC'" works just fine as myCodeVariable in case of substitution in
SELECT * FROM myTable WHERE INLIST(myCode,&myCodeVariable) INTO CURSOR myCursor
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison