Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding specific text in a text string
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi all

How can I, by using descriptive programming, find a specific text in a text string ?

Example: I want to check if the word "descriptive" exists in the sentence above.

Thanks
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
use Instr

Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Could you give me an example of the syntax please.

Thx
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
text1="How can I, by using descriptive programming, find a specific text in a text string ?"
'InStr Returns the position where text is located in main string else returns 0
Code:
If (InStr(text1,"descriptive")<>0) Then
   MsgBox "Text Found"
else
   MsgBox "Text Not Found"
End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture All text from webpage and copy it... mpatra 3 5,215 07-25-2018, 05:33 PM
Last Post: vimlesh
Question Find specific records in a SwfTreeView on different node levels lotos 0 2,410 10-06-2017, 05:14 AM
Last Post: lotos
  LearnQuickTestPDF -does not work on just getting the text jloyzaga 0 1,325 02-10-2017, 10:59 AM
Last Post: jloyzaga
  How to edit a text in aParagraph shaan.mishra87@gmail.com 2 2,531 08-26-2016, 04:48 PM
Last Post: shaan.mishra87@gmail.com
  Click on calender on specific date. venkatesh9032 1 3,882 12-02-2015, 07:30 PM
Last Post: nistalaramesh

Forum Jump:


Users browsing this thread: 2 Guest(s)