jezzzzy Posted February 18, 2009 Posted February 18, 2009 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 '%;'.
exodius Posted February 18, 2009 Posted February 18, 2009 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, "%;"))
jezzzzy Posted February 18, 2009 Author Posted February 18, 2009 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.
exodius Posted February 18, 2009 Posted February 18, 2009 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.
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