Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IE8's new automation interface
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01424698
Message ID:
01424705
Vues:
68
>I used the following code to automate IE. It works in IE7 or earlier but failed in IE8. It shows the following error message when oIE.ReadyState is being accessed. Can anybody show me the new IE8 interface and the correct syntax?
>
>"OLE error code 0x800706b5: The interface is unknown."
>
>
>*-- My code:
>oIE=CreateObject('InternetExplorer.Application')
>oIE.Navigate2('www.yahoo.com')
>
>nStartSeconds = SECONDS()
>DO WHILE oIE.ReadyState <> 4 AND (SECONDS()-m.nStartSeconds <= 1 )
>	DOEVENTS
>ENDDO	
>&& Do something
>
>
>TIA

Worked for me with IE8 - no errors. I have Windows XP here.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform