Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fill out web form programatically ???
Message
 
 
To
19/12/2001 18:02:01
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00596518
Message ID:
00596524
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform