Results 1 to 2 of 2

Thread: richtextbox unable to find word using docymenttext on webpage?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2013
    Posts
    6

    richtextbox unable to find word using docymenttext on webpage?

    i found the soulation, here it is :

    if richtextbox.contains = "milk" then
    search for "next"
    end if
    Last edited by doclocuc8; Jan 23rd, 2013 at 12:47 AM. Reason: solved

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,289

    Re: richtextbox unable to find word using docymenttext on webpage?

    "Cookies Milk" is not the same as
    "Cookies
    Milk"
    In 2nd string, there is a new line between the 2 words. When you compare 2 strings, white spaces do count. Therefore, if you expect the 2 strings above to match, you have to account for white spaces. Using regex makes the job easier.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width