Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Webbrowser control vs automation IE
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00963181
Message ID:
00963191
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform