-
Hi,
When I try to follow the link of a web page:
string = "http://jump.altavista.com/rs.go?Sony+digital+camera&pg=q&qe"
b = inet1.openurl(string)
I get "string" from the hyperlink property of the link.
But when I try to run the program it says that the URL is malformed.
Does anyone know why?
-
Don't use string as a variable name.
-
Actually I didn't use string as variable name, I used
a as the variable name for the string.
Funny thing is that when I call webbrowser1.navigate a, it works, but when i use inet.openurl(a) it won't - uRL is malformed.
-
Try this:
Code:
Private Sub Command1_Click()
theURL = Inet1.OpenURL("http://jump.altavista.com/rs.go?Sony+digital+camera&pg=q&qe", icString)
ReturnStr = Inet1.GetChunk(2048, icString)
Do While Len(ReturnStr) <> 0
DoEvents
theURL = theURL & ReturnStr
ReturnStr = Inet1.GetChunk(2048, icString)
Loop
End Sub