Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOCUMENT does not evaluate to an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01191245
Message ID:
01191254
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform