Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need to convert dbf to html
Message
 
À
07/04/2017 04:28:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01649884
Message ID:
01649930
Vues:
44
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform