Solved

Files and string cocurrency

Posted on 2004-08-02
3
163 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now