Search for a string in a string
Posted on 1997-11-30
I have a button and a TEdit control on a form.
The user can put words separated by spaces into the
TEdit. I have strings in an ini file. Lets say the
ini is called nov.ini and the section is called [img1] and the identity is called 'description'. I need to take all the words from the TEdit and see if any of them are in the string or part there of and do one thing if yes and not do anything if no.
The ini looks like this:
Description=this is image number one.
so if the user puts in "image" or "image one" or "th" or any part of this string, it returns a yes.
Thank you in advance,