home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / GOPHER / PC_SERVE / HAMBURG / GOPHDOC.ZIP / PXCREATE.DOC < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.5 KB  |  46 lines

  1.         PXCREATE - Create a Paradox table from a description
  2.                 Gunter Hille
  3.                 24-JAN-1993
  4.  
  5. Here is a way to create any database table for PARADOX. The idea is simple,
  6. just use an export mechanism that is common to all database languages.
  7.  
  8. For many year I am using an intermediate format, which is known as the
  9. QUIS-Format. The QUIS format just knows two types of data, strings and
  10. numbers. Strings are enclosed by quotation characters (e.g. "THIS"),
  11. numbers consist of digits and an optional decimal point.
  12.  
  13. A database table is described in QUIS format as well. The description of
  14. a database table is called a QUIS Structure List. And a file describing
  15. the table must have the extension ".QSL". All descriptions of tables
  16. contain exactly 4 items:
  17.  
  18.     1. The name of the item (of type string)
  19.     2. The type of the item (of type string)
  20.            Only two types ("C" for string, "N" for numeric)
  21.     3. The length of the item (of type number, either digits or chars)
  22.     4. The number of digits after the decimal point (of type number)
  23.        (0 for strings and integers)
  24.  
  25. Here is a sample description of a table PERSONS in QUIS format. It has the
  26. name PERSONS.QSL
  27.  
  28. "LASTNAME","C",20,0
  29. "SURNAME ","C",20,0
  30. "BIRTHDAY","N", 2,0
  31. "BIRTHMON","C", 3,0
  32.  
  33. To create an empty PARADOX database, you have to type
  34.  
  35. PXCREATE <table> <indexfields>
  36. e.g.
  37. PXCREATE PERSONS 2
  38.  
  39. Then the tables PERSONS.DB and PERSONS.PX will be created. The first two
  40. fields will be used for indexing.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.