X2C
Portable Xbase Compiler CGI Demo

[ Up | Copyright | Downloading X2c/cgi ]

Here are some examples of what you can do with X2c-cgi. The first are normal Dbase programs. The last is an example using the build-in template function that X2c/cgi has - it allows separating the database functions from the creation of the graphics of the web page.

[ A Form | Simple listing | Listing using a template ]

A real User
Thomas Register Regional Directories
600,000 companies in 2 gigs of databases - look for links using mcgi#


A Simple Form

Enter Your Name:
The program - test_pgm.prg


List a Database

Run the program
See the program


List a Database using a Template

Run the program
See the program
See the template

Some template functions are:

<VAR expression> - Returns value of expression <CALL expression> - Just calls expression - for positioning <REC> ... </REC> - Output record block <IF> .. <ELSE> ... </IF>- Conditional display block <NOSKIP> - Supresses next newline <DEBUG> - Enable debug displays </DEBUG> - Disable debug displays <INCLUDE file> - Include file

Downloading X2c/cgi

You can get the X2c/cgi code by going to the X2c FTP site and into the cgi directory.

The current version is only available for Linux. You will need to get a copy of the x2c for linux by downloading x2c-linux-20.tar.gz and then you will be sent the extra cgi functions once your payment as been processed.