| | |
reading data from website
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2008
Posts: 16
Reputation:
Solved Threads: 0
hi
i used the following code to read data from web.
this is my code
Private Sub Command1_Click()
Dim Text As Variant
WebBrowser1.Navigate ("www.google.co.in")
Text = WebBrowser1.Document.Body.Innertext
MsgBox Text
For i = 1 To 1000
If Mid$(Text, i, 8) = "google" Then
MsgBox ("String Found")
End If
Next i
End Sub
when i execute this code ,i receive an error message
runtime error :'91'
"object variable or with block variable not set"
the error appears in the underlined statement.
also i use IE 7.will there be any problem due to this.
pls help me out
thank u
i used the following code to read data from web.
this is my code
Private Sub Command1_Click()
Dim Text As Variant
WebBrowser1.Navigate ("www.google.co.in")
Text = WebBrowser1.Document.Body.Innertext
MsgBox Text
For i = 1 To 1000
If Mid$(Text, i, 8) = "google" Then
MsgBox ("String Found")
End If
Next i
End Sub
when i execute this code ,i receive an error message
runtime error :'91'
"object variable or with block variable not set"
the error appears in the underlined statement.
also i use IE 7.will there be any problem due to this.
pls help me out
thank u
•
•
•
•
hi
i used the following code to read data from web.
this is my code
Private Sub Command1_Click()
Dim Text As Variant
WebBrowser1.Navigate ("www.google.co.in")
Text = WebBrowser1.Document.Body.Innertext
MsgBox Text
For i = 1 To 1000
If Mid$(Text, i, 8) = "google" Then
MsgBox ("String Found")
End If
Next i
End Sub
when i execute this code ,i receive an error message
runtime error :'91'
"object variable or with block variable not set"
the error appears in the underlined statement.
also i use IE 7.will there be any problem due to this.
pls help me out
thank u
I am using IE 6.
Try unistall IE 7 to IE 6,
I've heard that people have had problems with IE7 and the web browser. there are some tutorials on the net to fix it with IE7, first I'll see if IE 7 is the problem
Last edited by bushman_222; Jul 3rd, 2008 at 11:31 am.
![]() |
Similar Threads
- i need help! (Shell Scripting)
- reading html data from a web page (C++)
- Creating a "Data" folder in my C: Drive using my Java program (Java)
- Reading out to a file/Null String Troubles (C++)
- Problem with strtok() for data structure creation (C++)
- Txt Coordinates into chart... (Java)
- Programming Sag Really Need Help / Advice (ASP.NET)
- IListSource does not contain any data sources (ASP.NET)
- DVD-ROM Isn't Reading DVD Disks (Storage)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Automatically Generate PDF Files in DWGeditor
- Next Thread: Hi VB Masters
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





