Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Form Navigation
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00833959
Message ID:
00834010
Views:
36
This message has been marked as a message which has helped to the initial question of the thread.
Troy,

The Forms collection is 0-based, so the first form is 0, second form is 1. And there is no Field collection on Form object, but there is an Elements collection, which is 0-based as well.

Note: some elements are excluded from Elements collection.
Look into getElementsByTagName and the Item collection.
? Thisform.oleWebBrower.Document.Forms(0).elements(0).name
Thisform.oleWebBrower.Document.Forms(0).elements(0).value = "123"
HTH.


Wan


>Using the Microsoft Web Browser control, how can I enumerate thru the forms and field to get a list of names and values? In other words, I need to navigate to any site and want to display the form field names for each form and their values.
>
>I can get as far as olewebbrowser.document.forms, but I always get a syntax error when trying ...forms(1).field(1)...
>
>
>
>Thanks,
>Troy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform