Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Webbrowser control vs automation IE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00963181
Message ID:
00963191
Vues:
8
>Hi all,
>
>When I use the next code with automation of IE, then it works fine. On the other hand when I use the webbrowser control on a form, i get an error message: "Member Form doesn't evaluate to an object". Here's the code:
>
>
>THISFORM.oWebBrowser.Document.Forms(0).item("strUserID").Value = cGebruikersnaam
>
>
>Could someone explain why ?
>
>Thank you.
>Zakaria al Azhar

It sounds like maybe you haven't renamed the web browser control. Check the name of the control to make sure it is owebbrowser. Also, check your object heirarchy to see if the path to the object is one level from the form. It may also be the case that you are trying to get a handle on an object that has yet to complete rendering. Check for the existence of the form using vartype or type in a do while loop.
do while vartype(THISFORM.oWebBrowser.Document.Forms(0))<>'O'
enddo
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform