Hi Barbara,
You can get the list of all open instances of IE using code below. You'll have to look into each IE instance properties to figure out which one you need.
oShell = CREATEOBJ('Shell.Application')
oIEColl = oShell.Windows
FOR EACH oIE IN oIEColl
IF "IEXPLORE.EXE" $ oIE.FullName
? oIE.LocationName
? oIE.hWnd
? oIE.LocationURL
ENDIF
ENDFOR
oIEColl = NULL
oShell = NULL
>Hi All,
>
>I have a VFP 6 application that creates an IE object, and uses that object to navigate to a particular page, fill in the fields on the selected page (a query), submit the page and then make IE visible to display the results.
>
>Now the web site has changed so that the option starts another instance of IE for the query page. Is there a way I can search for that instance of IE and manipulate it to acheive the same results?
>
>
>Thanks
>
>Barb Hill
--sb--