Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

Files and string cocurrency

Hello Experts!!!

i need a sub that find a cocurrency the string in a other string if the second string exist in a first extring return a find extring.:

string1= "experts exchange"
find_string="experts"

return: "experts exchange"


thanks

mario
0
Mario_castro
Asked:
Mario_castro
1 Solution
 
gregoryyoungCommented:


dim t as string = iif(string1.IndexOf(find_string) >= 0, string1, "")

I am assuming from above that if its not found you return an empty string ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now