Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Contains 1

Status
Not open for further replies.

simoncpage

Programmer
Apr 4, 2002
256
GB
What the quickest way of looking in a string to see if it contains a certain word (like the strings "hello1234" or "hello 1234" and seeing whether hello is contained in it)

Thanks
Simon
 
All very good but I want a non-case sensitive version???

Anyone?
 
Actually I think you will find that JohnYingling's suggestion is non-case sensitive.

If the final argument is 0 (zero), then a binary camparison is performed, hence Case Sensitive. 1 (as used above) causes a Textual comparison, which is noncase-sensitive.

A.C.
 
YOur right thanks alot..Im just being dumb today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top