Sign in to follow this  
Followers 0
jezzzzy

StringInStr

4 posts in this topic

Trying to do a simple string search with this:

StringInStr($string,'%;')

However this returns 0. If I remove the semicolon it returns a value (just the wrong one). I also tried escaping the semicolon like this:

StringInStr($string,'%\;')

Still no deal. Can't seem to find out how to search for '%;'.

Share this post


Link to post
Share on other sites



Trying to do a simple string search with this:

StringInStr($string,'%;')

However this returns 0. If I remove the semicolon it returns a value (just the wrong one). I also tried escaping the semicolon like this:

StringInStr($string,'%\;')

Still no deal. Can't seem to find out how to search for '%;'.

Using the following returns 11 (where it's located in the string) for me, does it not for you?

$string = "this is a %; string"

MsgBox (0, "", StringInStr($string, "%;"))

Share this post


Link to post
Share on other sites

Sure does. Looks like a misdiagnosis on my part. I will post a new topic with the actual problem. Turns out '%;' just wasn't in my string. But it should have been. Sorry for the bad post.

Share this post


Link to post
Share on other sites

Sure does. Looks like a misdiagnosis on my part. I will post a new topic with the actual problem. Turns out '%;' just wasn't in my string. But it should have been. Sorry for the bad post.

LOL, it's all good.

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