Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alerting User of an overdue task from VFP app to the Net
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00930276
Message ID:
01035263
Views:
14
Hello Ken,

the HTML Plugin - downloadable at http://www.midek.de/files/html.plugin-0.7.9.exe - does not use the XmlAdapter. I don't know if I even tried to use the XmlAdapter class... but I'm going to look at its capabilities again to check whether it is possible.

The plugin itself comes with English documentation and samples in Active FoxPro Pages, but it's not too hard to get it running in VFP as well.
Clear

Local lcXml, lcAlias, lnCount, loRecord, ;
	  Html As AFPPlugin.Html, Http As AFP3.Client

Set Procedure To ("..\..\html.plugin.dll")  && check path to dll.
HTTP = CreateObject("AFP3.Client")
Html = CreateObject("CHTML")  && the VFP class
*Html = NewObject("CHTML",GetFile("plugin.dll"))
*Html = CreateObject("AFPPlugin.Html")

* Get the RSS feed - anyhow... I'm using the AFP3 client to
* grap a valid feed from FoxCentral
lcXml = HTTP.Http.Get("http://foxcentral.net/foxcentralRssFeed.fc")
*lcXml = FileToStr("rss")´

If Not Empty(m.lcXml)
	lcAlias = "CurRSS"
	*---	Convert RSS feed to VFP cursor.
	lnCount = HTML.RSSToCursor(m.lcXml,m.lcAlias)

	If m.lnCount > 0
	    ?  [Count: ] + Transform(m.lnCount)
	    Select (m.lcAlias)
	    Browse Last
	    Scan
	        Scatter Name loRecord
	        ? Alltrim(m.loRecord.Title)
	    EndScan
	EndIf
EndIf
Kind regards, JoKi
Kind regards, JoKi

Get Blogged by JoKi - Enjoy AFP FAQ
Previous
Reply
Map
View

Click here to load this message in the networking platform