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 form
* explore the form items for i = 0 to loForm.Length-1 ? i, loForm.Item(i).Name, loForm.Item(i).Value endfor
loItem = loForm.item( "q" ) loItem.value = "this is so cool"