oIE = createobject( "internetexplorer.application" ) oIE.Visible = .t. oIE.Navigate( "www.google.com" ) do while oie.Busy() doevents enddo loDoc = oIE.Document && get the Document object loForm = loDoc.forms(0) && get the first form object loForm.Item(3).Value = "foxpro" && this is the field for the search string loform.Submit() && submit the formyou can use code like to find the items of a form:
* explore the form items for i = 0 to loForm.Length-1 ? i, loForm.Item(i).Name, loForm.Item(i).Value endforYou can also access the items by their names:
loItem = loForm.item( "q" ) loItem.value = "this is so cool"If you have VFP8 or VFP7 this stuff becomes really trivial because of Intellisense. You can just kind of explore things from the command window. You can also lookup IE DocumentObjectModel (DOM) on MSDN to help direct your explorations.