Chris_1013 Posted July 19, 2004 Share Posted July 19, 2004 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 Link to comment Share on other sites More sharing options...
Chris_1013 Posted July 19, 2004 Author Share Posted July 19, 2004 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? Link to comment Share on other sites More sharing options...
SlimShady Posted July 19, 2004 Share Posted July 19, 2004 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.. Link to comment Share on other sites More sharing options...
Davman Posted July 22, 2004 Share Posted July 22, 2004 Perhaps we can wishlist this? An @error result would be usefull. Sitting comfortably behind the code. Link to comment Share on other sites More sharing options...
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