GordonFreeman Posted January 25, 2012 Share Posted January 25, 2012 (edited) i need this function. $word= HotDog! StringHaveEspecificCharacter( $word, "!") result: if string have the specific character return 1 0 if string not have the specific character ---------------------------------------------------------- is only a grotesque example of what I need There is a similar function? Edited January 25, 2012 by GordonFreeman Frabjous Installation Link to comment Share on other sites More sharing options...
Developers Jos Posted January 25, 2012 Developers Share Posted January 25, 2012 Open the helpfile on: StringInStr() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GordonFreeman Posted January 26, 2012 Author Share Posted January 26, 2012 Ty man, this gave me blank in help file, since i have a little trouble in certain parts of English $result = StringInStr( "HotDog!", "!") msgbox( 1, "Thank You", $result) Frabjous Installation Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 26, 2012 Share Posted January 26, 2012 (edited) The MsgBox should have Thank You as the title, and 7 in the body. StringInStr returns the position of the search string (the ! character in this case), or 0 (zero) if it's not found. Edited January 26, 2012 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now