How to find the occurance of a string in a string

What code will find the string "bozo" in the string "the name of the clown is bozo the clown.
??
rbendAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kamallCommented:
SearchString="the name of the clown is bozo the clown"
MyPos = Instr(4, SearchString, "bozo")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kamallCommented:
MyPos will return the positin in the SearchString at which 'bozo' is found. If it is not found, a 0 will be returned.
0
kamallCommented:
In the given example, it will return 26.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

kamallCommented:
Did you try it?
0
rbendAuthor Commented:
Kamall: here's your points.
You wouldn't know how to "kill" an app if I know the contents of the Title Bar of it's window would you?
0
kamallCommented:
rbend,
Thanks for the points.
Sometime ago I saw such a code snippest, but I really don't have such code in my knowledge base.
I will try to search for it, and will inform you if I find something.
Best regards.
0
kamallCommented:
Well, I found some code on my system, but it is a 16-bit code.
If you know how to modify it to a 32-bit, I can e-mail it to you.
0
rbendAuthor Commented:
No thanks kamall..I got that code elsewhere.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.