Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting html --> text document
Message
 
To
12/10/2002 12:52:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00710635
Message ID:
00710720
Views:
21
Nancy
Solved my question. but do you know where I could get info re body vs.
documentElement. Leep running into things like this re
internet explorer.
Thanks
Steve

mcall = "http://www.klse.com.my/website/marketinfo/marketinfo.htm"

release o, odoc, otext
*LOCAL oie as internetexplorer.application
oIE = createobject( "internetexplorer.application" )
oIE.Visible = .t.
oIE.Navigate( mcall )
do wait_for_page
oDoc = oIE.Document
*lcText = oDoc.documentElement.innerText
oText = oDoc.body.innerText **<<-- body vs documentElement

StrToFile(oText, "test.txt")
modi comm "test.txt"

*****************************************************8
proc wait_for_page

stime = time()
do while oie.Busy
wait wind "Please wait... Internet Explorer is busy " + time() time 1
enddo
do while lower(oie.Document.ReadyState) <> "complete"
wait wind "Please wait...while page downloads " time 1
enddo
endproc
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform