Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check a small text into a string?
#3
Not Solved
Here is the code..

Code:
str = "test is a job that we have to check error or bug from a product...."

s = InStr(1,str,"test")

If s = 1 then
  Msgbox "Given word exists in the string"
else
  Msgbox "Given word does not exists in the string"
End If
Reply


Messages In This Thread
RE: How to check a small text into a string? - by ssvali - 05-13-2012, 05:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script to separate upper & small Letters from a string and store in excel pradeep537 1 2,102 08-05-2016, 12:26 AM
Last Post: Ankur
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,585 09-13-2015, 12:06 AM
Last Post: ADITI1992
  How to retrieve specied string from text file nsuresh316 1 2,221 06-09-2015, 12:24 AM
Last Post: nsuresh316
  Replace a string in a word document with another string rekha.naik 8 15,145 11-14-2013, 12:58 PM
Last Post: pranikgarg
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,328 08-13-2013, 08:37 PM
Last Post: excellentpawan

Forum Jump:


Users browsing this thread: 3 Guest(s)