Results 1 to 6 of 6

Thread: finding a string in richtext box...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    259

    finding a string in richtext box...

    i am trying to find a string in a richtext box and this is what i do...

    for example the content of my richtextbox is

    a
    a
    b
    a
    b


    i do rich.selstart = 0
    rich.find "a"
    then i get the positiion of the first a.

    But how do i do now to find the second or third a?
    I only can find the first.

    thanks,

  2. #2

  3. #3
    Lively Member
    Join Date
    Dec 2003
    Location
    Michigan
    Posts
    101
    Do you want to fin out how many "a's" there are, or are you looking for the position of each "a"?

    .......hmmm well nevermind....marty beat me to it...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    259
    Originally posted by OsamaBinGhandi
    Do you want to fin out how many "a's" there are, or are you looking for the position of each "a"?

    .......hmmm well nevermind....marty beat me to it...
    no i have to make a small class module where i must be able to find the second a.

    for example:
    user: blablbal
    date: blablabl
    user:bliblibli

    so then i can find name of second user.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    259
    Originally posted by MartinLiss
    Pos = RichTextBox1.Find
    Pos = RichTextBox1.Find, Pos

    trying to but seems it does not work. verry strange because i was doing this already

  6. #6

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