|
-
Aug 10th, 2005, 08:51 PM
#1
Thread Starter
Lively Member
Inet Control Help
VB Code:
Private Sub Command2_Click()
n = -14
For n = n To Text2.Text
n = n + 14
myurl = Text3.Text & n
Inet1.Protocol = icHTTP
Inet1.Execute CStr(myurl), "GET /"
While Inet1.StillExecuting
DoEvents
Wend
Text1.Text = Replace(Text1.Text, vbCrLf + vbCrLf, vbCrLf)
'Call Limits
Call parse
Call Command3
Text1.Text = ""
Next n
MsgBox "Done"
End Sub
Private Sub Inet1_StateChanged(ByVal State As Integer)
Select Case State
Case 12
stemp = Inet1.GetChunk(100)
While stemp <> ""
Text1.Text = Text1.Text & stemp
'Text1.Text = Replace(Text1.Text, " ", "")
stemp = Inet1.GetChunk(100)
Wend
Text1.Text = Text1.Text & stemp
Case 11
MsgBox Inet1.ResponseInfo, vbCritical, "error"
End Select
End Sub
I need to pull html from a website and place it in a rich text box. This code worked once before , but I have changed computers and many updates. I am not sure if the code has gotten changed or modified but it doesn't work now. Any ideas or help is appreciated.
-
Aug 10th, 2005, 08:55 PM
#2
Re: Inet Control Help
First you would need a rich text box.
-
Aug 11th, 2005, 04:32 PM
#3
Thread Starter
Lively Member
Re: Inet Control Help
text1 is a rich text box.
-
Aug 11th, 2005, 04:42 PM
#4
Re: Inet Control Help
Is it pulling down any data? What is the problem?
-
Aug 11th, 2005, 04:45 PM
#5
Thread Starter
Lively Member
Re: Inet Control Help
its not pulling any data , it seems to be connecting to the internet and working but no data is being displayed in rich text box nor does it show any in the watch screen.
-
Aug 11th, 2005, 04:47 PM
#6
Re: Inet Control Help
Put a breakpoint on the Select Case to see what value State has.
-
Aug 11th, 2005, 04:58 PM
#7
Thread Starter
Lively Member
Re: Inet Control Help
It goes from break point Select Case State to Case 12 then skips to Case 11 then goes to End Select.
-
Aug 11th, 2005, 08:58 PM
#8
Re: Inet Control Help
Hover over STATE to see what the value is, or place a
MSGBOX STATE in somewhere. Did you always use the variable STATE? Could it be reserved?
-
Aug 12th, 2005, 04:43 PM
#9
Thread Starter
Lively Member
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
|