Or, without macrosubstitution
IF EVAL("INLIST(" + "'" + ctemp + "'," + cstring + ")")
? "SUCCESSFUL"
else
? "FAILED"
endif
>I would like to create a inlist() search string on the fly. In my attempts, I have been unsuccessful. For example:
>
>ctemp = 'V'
>cstring = "'V','X'"
>
>if inlist(ctemp,cstring)
>? "SUCCESSFUL"
>else
>? "FAILED"
>endif
>
>This code runs without error but always returns false. Can anyone help.
>
>TIA,
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