Solved

Files and string cocurrency

Posted on 2004-08-02
3
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Footer for each row on Gridview 2 43
Convert Ctime to date time in textfile? 7 64
vb.net datagrid point 4 23
ASP.NET Complete Life Cycle for all the controls 2 25
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …

696 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