Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fill out web form programatically ???
Message
 
À
19/12/2001 18:02:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00596518
Message ID:
00596524
Vues:
32
This message has been marked as the solution to the initial question of the thread.
>Does anybody know a way to use VFP to load a form in a web browser AND fill out that form programatically from data in a Fox Pro table?
>
>If so, please point me in the right direction.

By "form in a web browser" I will assume you mean an HTML form.
Here is some code from one of my files called startfw which is based on startut from Erik Moore. It opens IE, then fill in two text boxes then submits the form.
oIE = CREATEOBJECT("InternetExplorer.Application")
oIE.Navigate("fox.wikis.com/wc.dll?wiki~Find")
INKEY(1)
nStartSeconds = SECONDS()
* bug fixed by Erik Moore Nov 25/99
DO WHILE oIE.ReadyState <> 4 AND (SECONDS()-nStartSeconds < 30)
ENDDO
oie.document.forms(0).TopicSearch.Value = alltrim(this.parent.txtWikiTerm.value)
oIE.Document.Forms(0).Submit()
oIE.Visible = .T.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform