Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to generate a html page from a table ?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00781350
Message ID:
00781448
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform