Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Browser Form Navigation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00833959
Message ID:
00834010
Vues:
37
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform