Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need to convert dbf to html
Message
 
To
07/04/2017 04:28:15
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01649884
Message ID:
01649930
Views:
43
>>I just need an example of code then I can take it from there
>
>I can expand on the example I already posted (below)
>
>Please point out what's unclear to you -- specifically
>
>
>cFile = 'some address'
>use table
>nField = fcount()
>strtofile('', m.cFile)
>strtofile('<table>' + chr(13) + chr(10), m.cFile, 1)
>strtofile('<tbody>' + chr(13) + chr(10), m.cFile, 1)
>scan
>  strtofile('<tr>', m.cFile, 1)
>  for iField = 1 to m.nField
>    strtofile('<td>' + trim(eval(field(m.iField))) + '</td>', m.cFile, 1)

>  endfor
>  strtofile('</tr>' + chr(13) + chr(10), m.cFile, 1)
>endscan
>strtofile('</tbody>' + chr(13) + chr(10), m.cFile, 1)
>strtofile('</table>' + chr(13) + chr(10), m.cFile, 1)
>
Thanks for that

Colin
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform