Solved

Files and string cocurrency

Posted on 2004-08-02
3
166 Views
Last Modified: 2010-04-23
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
Comment
Question by:Mario_castro
3 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 50 total points
ID: 11699294


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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question