>I started VFP then immediately issued the commands. No tables are open.
>
>
It doesn't make much sense, but check what tables are open and what fields are in them.
Happy Hannukah!
Also, can you use different variables, say,
lcLongString, lcStringToSearch - what will you get?
If it's not broken, fix it until it is.
My Blog