thegame8311
Technical User
After I run the following code several times I get an OLE unspecified error
is there a what to delete the object or kill the process after running the code above, because otherwise it leaves those processes open, and I am testing some other code after it, so the iexplorer process needs to close or terminate
Code:
* use the ie browser
oIE2 = createobject("internetexplorer.application")
* to navigate to a web page of interest
oIE2.navigate2("[URL unfurl="true"]http://www.nfl.com/stats/categorystats?tabSeq=1&statisticPositionCategory=QUARTERBACK&qualified=true&season=2011&seasonType=REG")[/URL]
* wait for the page to load
Do While oIE2.readystate<>4
Doevents
ENDDO
newHandle = FCREATE('C:\new.txt')
* extract the net text:
*oIE.Document.body.innertext*
x = oIE2.Document.body.innertext
FWRITE(newHandle, x)
FCLOSE(newHandle)
is there a what to delete the object or kill the process after running the code above, because otherwise it leaves those processes open, and I am testing some other code after it, so the iexplorer process needs to close or terminate