What's new

help with trimming a string?

  • Thread starter ShadowZ
  • Start date
  • Views 236
Status
Not open for further replies.
S

ShadowZ

Enthusiast
Messages
1,390
Reaction score
203
Solved
 
Ibdc

Ibdc

VIP
VIP
Retired
Forum Addict MotM
Messages
4,979
Reaction score
2,172
Instead of doing that, you could try opening the page in an invisible webbrowser control and using Webbrowser1.Document.GetElementById("insertElementIDhere").InnerText.ToString

If it doesn't have an id I guess you can try this

Dim hec as HtmlElementCOllection = Webbrowser1.Document.GetElementsByTagName("insert tag name here, e.g. body")
For Each he as HtmlElement in hec
If he.GetAttribure("value") = "the 40 constant characters" then
Dim stuff as string = he.InnerText.ToString
End If
Next

Try that
 
S

ShadowZ

Enthusiast
Messages
1,390
Reaction score
203
I already solved this problem thanks to some nice people on another forum. Thanks for the effort though Idbc and dschu
 
Status
Not open for further replies.
Top Bottom