Jump to content

Recommended Posts

Posted

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 '%;'.

Posted

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, "%;"))
Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...