Sign in to follow this  
Followers 0
GordonFreeman

Help Me! String management

4 posts in this topic

#1 ·  Posted (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 by GordonFreeman

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0