Use TextMerge to export FoxPro data
This example exports a simple list of customers to a HTML page:
Use Customer
Set Textmerge On
Set Textmerge To
customer.htm
noshow
\<html>
\<head>
\<title>HTML from FoxPro</title>
\</head>
\<body>
\<h1>Customer List</h1>
\<hr />
Scan
\Company name is
<<Upper(Company)>>
\<br />
Endscan
\</body>
\</html>
Set Textmerge To
Set Textmerge Off
Use In Customer
This short program will produce a text file named 'customer.htm' which
looks like this in a browser:
This is a very simple page but even so the mixture of TextMerge and HTML can be
confusing to write. Both use the < and > symbols and it's easy to get confused.
TextMerge is however a very powerful and flexible technique which lets you build
a page which will display a mixture of text and data.
|