finding a word in a string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

given: "This is a test string"

how can i search the string above to see if it contains the word "test"?

thanks,
rodchar
 
rodchar said:
given: "This is a test string"

how can i search the string above to see if it contains the word "test"?

If the search string can be part of another word:

\\\
Dim s As String = "This is a test, really!"
MsgBox(CStr(InStr(s, "test") > 0))
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top