Results 1 to 4 of 4

Thread: [RESOLVED] Weird characters I cant get rid of, please help

  1. #1

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Resolved [RESOLVED] Weird characters I cant get rid of, please help

    Ok, I am using code to get spcific information from the weather.com website. The current weather and the feels like temperature and the date updated. The problem is that when I put it into a text box (each into its own) I get a space at the begining followed by 3-5 of these black boxes. The ones you get when there is a character that the text box does not recognize. Does anyone know how to remove these? Also, does anyone know how to place a space between the end of a string and before a number?

    I have "Clear49*F" and I want it to be "Clear 49*F"
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Weird characters I cant get rid of, please help

    did u use that code I posted to get the "Feels Like" ?

    post the code u are using to for this
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Re: Weird characters I cant get rid of, please help

    Thanks static but I got it fixed, I believe. I took your code and changed it a little. Now it reads the source code, not the page text. So it doesnt display the weird characters anymore.
    VB Code:
    1. Set hDoc = WebBrowser1.Document
    2.         doc = hDoc.body.innerHTML
    3.         If InStr(doc, "<B class=obsTempTextA>") Then
    4.             tmp = Split(doc, "<B class=obsTempTextA>")
    5.             tmp = Split(tmp(1), "</B>")
    6.             Text1.Text = tmp(0)
    7.         End If
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: [RESOLVED] Weird characters I cant get rid of, please help

    ahh.. good thinking
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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