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