Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to generate a html page from a table ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00781350
Message ID:
00781448
Vues:
20
select mytable
go top
lnfields=afields(lafields)
lchtml='<table>'
  lchtml=lchtml+'<tr>'

  for i = 1 to lnfields
    lchtml=lchtml+'<td>'+ALLTRIM(lafields(i,1))+'</td>'
  next i
  lchtml=lchtml+'</tr>'

scan
  lchtml=lchtml+'<tr>'
	  for i = 1 to lnfields
	    lchtml=lchtml+'<td>'+trans(eval(lafields(i,1)))+'</td>'
	  next i
  lchtml=lchtml+'</tr>'
endscan
lchtml='<head><body>'+lchtml+'</table>,</body></html>'

STRTOFILE(lchtml,'c:\test.htm')
>Hi,
>
>How can i generate a html page from my table ?
>I need to publish a new page every day, so that the user will be able to see at the internet.
>
>Alexandre
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform