home *** CD-ROM | disk | FTP | other *** search
- PXCREATE - Create a Paradox table from a description
- Gunter Hille
- 24-JAN-1993
-
- Here is a way to create any database table for PARADOX. The idea is simple,
- just use an export mechanism that is common to all database languages.
-
- For many year I am using an intermediate format, which is known as the
- QUIS-Format. The QUIS format just knows two types of data, strings and
- numbers. Strings are enclosed by quotation characters (e.g. "THIS"),
- numbers consist of digits and an optional decimal point.
-
- A database table is described in QUIS format as well. The description of
- a database table is called a QUIS Structure List. And a file describing
- the table must have the extension ".QSL". All descriptions of tables
- contain exactly 4 items:
-
- 1. The name of the item (of type string)
- 2. The type of the item (of type string)
- Only two types ("C" for string, "N" for numeric)
- 3. The length of the item (of type number, either digits or chars)
- 4. The number of digits after the decimal point (of type number)
- (0 for strings and integers)
-
- Here is a sample description of a table PERSONS in QUIS format. It has the
- name PERSONS.QSL
-
- "LASTNAME","C",20,0
- "SURNAME ","C",20,0
- "BIRTHDAY","N", 2,0
- "BIRTHMON","C", 3,0
-
- To create an empty PARADOX database, you have to type
-
- PXCREATE <table> <indexfields>
- e.g.
- PXCREATE PERSONS 2
-
- Then the tables PERSONS.DB and PERSONS.PX will be created. The first two
- fields will be used for indexing.
-
-
-
-
-
-