Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOCUMENT does not evaluate to an object
Message
From
01/02/2007 04:24:17
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01191245
Message ID:
01191254
Views:
12
Hi,
Check ReadyState property:
>	lPage = "http://www.ecargocentral.com"
>	o = CREATEOBJECT("internetexplorer.application")
>	*o.Visible = .t.
>	o.Navigate(lPage)
        DO WHILE o.ReadyState <> 4
        ENDDO
>	STORE o.document.body.innertext TO lcHTML
HTH,
Viv

>I have an application in vfp8 that run permanently on a server. Its job is to go regularely on a specific web page and get some information.
>
> lPage = "http://www.ecargocentral.com"
> o = CREATEOBJECT("internetexplorer.application")
> *o.Visible = .t.
> o.Navigate(lPage)
> INKEY(5)
> STORE o.document.body.innertext TO lcHTML
>
>
>It runs for awhile and it gives the following error:
>
>DOCUMENT does not evaluate to an object
>
>I don't understand why it works some time and some times not ?
>
>Any ideas ?
>
>Thks
>Eric
Previous
Reply
Map
View

Click here to load this message in the networking platform