Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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