|
-
Nov 15th, 2005, 09:00 AM
#1
Thread Starter
Fanatic Member
[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"
-
Nov 15th, 2005, 09:04 AM
#2
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"
-
Nov 15th, 2005, 09:27 AM
#3
Thread Starter
Fanatic Member
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:
Set hDoc = WebBrowser1.Document
doc = hDoc.body.innerHTML
If InStr(doc, "<B class=obsTempTextA>") Then
tmp = Split(doc, "<B class=obsTempTextA>")
tmp = Split(tmp(1), "</B>")
Text1.Text = tmp(0)
End If
-
Nov 15th, 2005, 09:31 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|