Jump to content

Recommended Posts

Posted

This seams simple enough to me, but I can't find it in the help file. How do I know if StringReplace hasn't replaced any entries in a string (preferably because there weren't any)? I've checked @error value, but this is always 0.

Chris

Posted

Well, I can do it by Using StringInStr to check for existance of my string 1st.

Or I can read it to a temporary variable and compare after running StringReplace..

or probably 100 other ways.

Sometimes just helps to talk it out huh?

Posted

Yeah it sucks that it doesn't return something when it hasn't replaced a thing.

I use this at the moment:

Or I can read it to a temporary variable and compare after running StringReplace..

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...