Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading ASP data from a web page to VFP
Message
From
10/10/2000 10:56:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Reading ASP data from a web page to VFP
Miscellaneous
Thread ID:
00427292
Message ID:
00427292
Views:
90
Greetings to all,

I read Erik Moore's article in the June 2000 "FoxPro Advisor" magazine and tried to retrieve data from the web site www.unos.org using the following code provided in that article:

CREATE CURSOR pagecatalog (ItemIndex i, InnerText M, InnerHTML M)
FOR i = 0 TO oie.DOCUMENT.body.ALL.LENGTH -1
m.ItemIndex = i
m.InnerText = oie.DOCUMENT.body.ALL(i).InnerText
m.InnerHTML = oie.DOCUMENT.body.ALL(i).InnerHTML
INSERT INTO pagecatalog FROM MEMVAR
ENDFOR

None of the data in the frames was retrieved! I was given the following code previously get at the frames directly to try this code:

? oIE.Document.Frames(1).Document.Body.innerText
? oIE.Document.Frames(2).Document.Body.innerText
? oIE.Document.Frames(3).Document.Body.innerText
? oIE.Document.Frames(4).Document.Body.innerText

and nothing printed out to the VFP screen. It works well on other pages but not the one in question.

I am a new VFP developer and I would greatly apprecieate a place to start with solving this problem.
Next
Reply
Map
View

Click here to load this message in the networking platform