Generating HTML documents with FoxPro

Source: Internet
Author: User

In many Novell networks today, the data platform is still based on DOS FoxPro environment, general workstations are diskless stations, but the leadership of the workstation is often used to prepare a better, and equipped with WIN95 or WIN98 systems, if only for data query or simple processing,

will result in waste of resources, and if other work is done at the same time, it cannot ensure network security.

----In view of this, we have designed a FoxPro program to generate HTML files, placed in a specific directory on the server, only for the leader to read. In this way, using IE to browse HTML files, make full use of the characteristics of IE and WIN98, not only to realize the Cross-platform data transmission, convenient and beautiful to meet the leadership query function, and so that the leading workstation can do other office processing, but also to ensure the security of the network. Of course, with the homepage feature, you can also implement data transfer over the Internet.

----HTML (hypertextmarkuplanguage) is a Hypertext Link Markup language and is a plain text format. The homepage is written in HTML format. HTML files can be generated either by FrontPage or by hand, which labels and arranges objects, supports text, sounds, images, animations, and many other formats, and links to other HTML files at the same time. The label itself is labeled ' < ' and ' > ', the contents of the label are called elements (element), and the element represents the meaning of the label, regardless of the case. The general format of the element is:

   Object

----Because HTML is a text, its statements can be placed in the FoxPro DBF Library, and when the program executes, the latest data is placed at the specified location in the DBF library. Then, the DBF database is converted to fame. HTM text Format, you can use IE or navigator to browse or print, or even linked to the relevant Internet home page, to achieve long-distance data transfer or information dissemination.

----The following is a simple example that describes how to generate HTML using FoxPro:

----1. Create a database that generates HTML files:

----Create a new database file named HTML in FoxPro, and a field that creates 4 text properties for the database by setting the window, with the name and length of MARK (10), CODE1 (60), DATA (20), CODE2 (20).

----Append the following record to the HTML.DBF. Where the Mark field is a tagged field that is easy to locate when data is updated, and the data field is used to store the latest data; The CODE1 and CODE2 fields are fields that hold HTML statements, either based on your own design or in FrontPage-generated master source files:

......

----2. Add or update data:

----Design a statistical data program that puts the statistics in a specific location in the HTML.DBF.

......

----3. Generate HTML file:

----Design a small program that transforms html.dbf into html.htm text files and places them in a designated location on the network:

......

----4. Our recommendations:

----divides the html.dbf into several libraries, facilitates the circular programming of the data part, and then connects several libraries when the text is generated, referring to the FrontPage-generated home page source HTML statement, which generates a personalized homepage style in an accurate and aesthetically pleasing manner.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.