Results 1 to 4 of 4

Thread: How can you create a list that contains all items that are bolded in a webbrowser?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195

    How can you create a list that contains all items that are bolded in a webbrowser?

    For example..

    if the webbrowser contains:
    <b>Hello</B><font...><a href = "blah blah"></a><B>Test<a href=www.download.com></a></b>

    then the listbox will contain
    Hello
    Test<a href=www.download.com></a>


    and any more areas that are bolded..

    anyone know how to do this?

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    TheHTML = UCase(TheHTML)
    start = 1
    do until instr(start,TheHTML,"<B>") = 0
    a = instr(start,TheHTML,"<B>") + 3
    b = instr(b,TheHTML,"</B>) - a
    start = a + b
    List1.AddItem Mid(TheHTML,a,b)
    loop
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    tell me if it works or not, because you have the tendency to never reply back if the code is correct, which makes us confused if you actually read the message or not, and makes us wondered if we typed the code in vain.....
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    lol

    the code worked perfectly, thanks a lot

    just had to change b = instr(b,TheHTML,"</B> ) - a
    to

    b = InStr(a, thehtml, "</B>") - a

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