John
You should use HTMLDOM to achieve this. The Web Browser ActiveX control has a Document property. Check out the following example:
local oDoc
ThisForm.oWebBrowser.Navigate2("www.whatever.com/someentryform")
oDoc = ThisForm.oWebBrowser.Document
with oDoc
.forms(0).SomeField.Value="John"
.forms(0).SomeOtherField.Value="Herron"
.forms(0).Submit()
.someFormName.SomeField.Value = "Some Value"
.all.TheButton.Click()
endwith
As you can see, you'll have to play with it a little to see the properties. If you're using VFP7, you'll get quite a help also from Intellisense.
Do a search for HTMLDOM , or Document and Element objects in MSDN, and you'll reach some explanations and reference about the HTMLDOM object model.
HTH
Jaime
>Hi
>
>I am using CREATEOBJECT("InternetExplorer.Application") then navigating to the website and then using the code below to start to navigae from page to page.
>
>oShell = CreateObject("WScript.Shell")
>oShell.AppActivate(oIE.Document.Title)
>oShell.SendKeys("{TAB}{ENTER}")
>oShell.SendKeys("{TAB}{TAB}{TAB}{ENTER}")
>
>
>This is woking fine until I get to the page I'am after, the website then displays the page in a new instance of internet explorer, when this happens I can't control the new page. I can't navagate to the page directly because the url changes depending on the login user id etc.
>
>I need to get the information from the new page into a VFP7 application .
>The page is just a simple html page with only csv information displayed on it.
>
>So my question is how can I control the new instance of internet explorer created by the website so I can retrieve the information.
>
>Thanks for any suggestions.
>
>John
Why do programs stop working correctly as soon as you leave the Fox?