Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need to convert dbf to html
Message
From
07/04/2017 04:28:15
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01649884
Message ID:
01649929
Views:
48
>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)
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform