I have some code similar to below. If I use the inlist command like INLIST(LEFT(Forename,1),"A","B","C"
, everthing works fine. However if I have a variable for the letters (ie sINLIST = "A,B,C"
only the first letter is reconnised. All forenames beginning with B and C are ignored. This needs to be a variable as I want the operator to be able to choose the Forenames they want to pick (ie beginning with A,B,D etc...)
Example below only shows Forenames begginning with C. I want C J and B.
sINLIST = "C,J,B"
lcFilter = 'INLIST(LEFT(Forename,1),sINLIST)'
lcFields = SUBSTR(lcFields,2)
lcFilter = SUBSTR(lcFilter,8)
SELECT &lcFields ;
FROM cp_score, cp_member ;
WHERE &lcFilter ;
INTO TABLE test
Example below only shows Forenames begginning with C. I want C J and B.
sINLIST = "C,J,B"
lcFilter = 'INLIST(LEFT(Forename,1),sINLIST)'
lcFields = SUBSTR(lcFields,2)
lcFilter = SUBSTR(lcFilter,8)
SELECT &lcFields ;
FROM cp_score, cp_member ;
WHERE &lcFilter ;
INTO TABLE test