Information générale
Catégorie:
Contrôles ActiveX en VFP
I have just begun experimenting with the InternetExplorer control. Most of it seems to be going well,
but I have one puzzling problem. When navigating to a site, I am checking both IE's ready state as well
as the documents ready state. When they both indicate the page is loaded, I am running the following code:
FOR EACH oLink IN oIEobj.Document.Links
SELECT tblMain
REPLACE displaytxt WITH oLink.InnerText
REPLACE url WITH oLink.HREF
ENDFOR
The code runs fine on some pages, but on others, it really has problems. It either tells me that the
object oLink.InnerText does not exist, or it gives a fatal error and crashes out to the os. Any hints
would be much appreciated.
Also, is there anything in the document's object module that gives you the meta tags or other html header
info? I could not find it if there is.
Thanks in advance
John Dennis
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement