Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Html table generation via genhtml??
Message
De
27/11/2000 15:50:09
 
 
À
27/11/2000 14:38:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00445756
Message ID:
00445830
Vues:
24
>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>'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform