ID:156403
 
Hey,

I'm looking through the findtext() procedure and while it can find exact text, I'm looking for moreso it to find specific words in a sentence.

ie...

text to find: "big old"
text to find in: "Hey everyone in this big old world."

Currently, this is for a flashcard program. It looks a bit like this...

if(findtext(find,card.name))
usr<<"Found it."
else
if(findtext(find,card.definition))
usr<<"Found it."
else
usr<<"Your search returned with no results."
return


A very simplified version, but you get the idea. So what am I doing wrong?
Johawesomenny wrote:
So what am I doing wrong?

Passing the arguments backwards
In response to Falacy
-_-

Wow, now I feel like an idiot. But thank you very much Falacy, much appreciated!