Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table to HTML
Message
De
05/12/2005 05:04:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/12/2005 00:53:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01074831
Message ID:
01074852
Vues:
14
>Dear Sir,
>
>While usning VFP 6, is there any procedure to to convert DBF to HTML.
>
>Please help

I remember I saw something dbf2html but not sure. A simple one:
Use customer
lcHTML = "myCustomers.htm"
Set textmerge to (m.lcHTML) noshow
Set textmerge on
\\<html>
\<body>
\<table border="1">
\<tr>
For ix=1 to fcount()
    If type(field(m.ix)) != 'G'
\<th><<field(m.ix)>></th>
    Endif
Endfor
\</tr>
Scan
\<tr>
    For ix=1 to fcount()
        If type(field(m.ix)) != 'G'
\<td><<eval(field(m.ix))>></td>
        Endif
    Endfor
\</tr>
Endscan
\</table>
\</body>
\</html>
Set textmerge to
Set textmerge off
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform