Brenda,
As well as what Nadya and Andrew have said, if the text could contain punctuation then it might be necessary to replace all possible punctuation with a space so that the search works.
Just a thought.
Caroline
>I want to find certain words in a string. meaning the word can be at the beginning of the string followed by a space, at the end of the string preceeded by a space, or in the middle of the string both preceeded and followed by a space. I use VFP 6.0 SP5. How can I accomplish this without my current bunch of goobly gook code.
>
>Thanks
>
>Brenda
Caroline