Jump to content
Sign in to follow this  
GordonFreeman

Help Me! String management

Recommended Posts

GordonFreeman

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
GordonFreeman

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
somdcomputerguy

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.