Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Html table generation via genhtml??
Message
From
27/11/2000 15:50:09
 
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00445756
Message ID:
00445830
Views:
16
>I don't want to write the code that converts my cursor into an html table.

Why not just use the GenHTML.PRG? There is a function in WWWC that does this too, but the conversion itself isn't a tall order. Obviously, you'll want to pretty it up, but this took me about 45 seconds too write :-)
lcHTML = '<html><table><tr>'
for lnI = 1 to fcount()
	lcHTML = lcHTML + '<td>' + field(lnI) + '</td>'
endfor
lcHTML = lcHTML + '</tr>'
scan
	lcHTML = lcHTML + '<tr>'
	for lnI = 1 to fcount()
		lcHTML = lcHTML + '<td>' + tran(eval(field(lnI))) + '</td>'
	endfor
	lcHTML = lcHTML + '</tr>'
endscan
lcHTML = lcHTML + '</table></html>'
Previous
Reply
Map
View

Click here to load this message in the networking platform