Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table to HTML
Message
From
05/12/2005 05:04:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/12/2005 00:53:46
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074831
Message ID:
01074852
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform