Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: TheDerman on September 24, 2010, 01:53:26 AM

Title: Checking Editor text
Post by: TheDerman on September 24, 2010, 01:53:26 AM
Hello everyone,

Is there a way to check to see if the text of an editor contains certain words?

I have a little search engine type input editor, and I can't be sure exactly what people will put in there, but I want to check to see if they have entered two specific words - regardless of whatever else they enter, I just want to check that they've entered these two words, and if they have, bring up a new window which shows the "search results".

Can I do that? I can't find anything.

Thank you.   :)
Title: Re: Checking Editor text
Post by: TheDerman on September 24, 2010, 02:20:52 AM
It's ok - I figured it out - I set the editor text to a new string and used IndexOf - seems to work fine.

Thanks.  :)