Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert HTML table to a VFP9.0 table 2

Status
Not open for further replies.

fourletr

Technical User
Dec 1, 2003
29
0
0
CA
We are able to export data to HTML using _GENHTML.PRG but would like to do the reverse, any suggestions.

Richard Myers (aka - fourletr)
Burlington - Ontario
Canada
 
Take a look at STREXTRACT(). It's pretty good for parsing this kind of data. Also, if you have a choice, use XML rather than HTML, and you can use either XMLToCursor() or XMLAdapter to pull the data out.

Tamar
 
Tamar is right that html tables are not at all ideal for storing data and getting it back, you better go XML.

But for the sake of pointing out all the options, if you show a html table in a browser or webbrowser control, right clicking offers the option to export to excel.

Then again vfp has problems reading in xls files of new excel versions, but you can go through ODBC/OLEDB to query excel sheets. At least there are commands like IMPORT and APPEND FROM to work on xls, but not for html.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top