home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / del2faq.zip / TI1248.ZIP / TI1248.ASC
Text File  |  1995-12-08  |  5KB  |  126 lines

  1.    NUMBER  :  1248
  2.   PRODUCT  :  Paradox
  3.   VERSION  :  All
  4.        OS  :  WIN
  5.      DATE  :  December 8, 1995                        
  6.  
  7.     TITLE  :  Printing the Structure of a Table
  8.  
  9. Intended Audience:
  10. ------------------
  11. All users of Paradox for Windows
  12.  
  13. Prerequisites:
  14. --------------
  15. Familiarize yourself with how to view the structure of a table.
  16.  
  17. Purpose of the TI:
  18. ------------------
  19. This document demonstrates how to print the structure of a table.
  20. To print the table structure of all tables in the working
  21. directory, refer to Technical Information Sheet #1672, "Creating
  22. a Table Structure Inventory Using a Script."
  23.  
  24.  
  25. Obtaining a printout of the structure for a table is desirable
  26. when using Paradox for Windows interactively or when programming
  27. in ObjectPAL.  This Technical Information Sheet deals with the
  28. specifics of obtaining such a printout easily.  In order to print
  29. a table structure, you must first view the structure and create a
  30. structure table.  The procedures for viewing a table structure
  31. and creating a structure table differ in version 7, 5.0, and
  32. versions prior to 5.0, consequently different sets of
  33. instructions are presented below.
  34.  
  35.  
  36.         VIEWING AND CREATING A TABLE STRUCTURE - PARADOX 7
  37.  
  38.    1.  To view a table structure, choose Tools | Utilities | Info
  39.        Structure.
  40.  
  41.    2.  From the Select File dialog box, select a table name and
  42.        choose Open.  The Structure Information dialog box
  43.        appears.
  44.  
  45.    3.  Choose Save As.  The Save Struction Information As dialog
  46.        box appears.  As a default the structure is saved as
  47.        STRUCT.DB in the private directory.  Choose Save.  To
  48.        print the structure of the table, refer to "Printing the
  49.        Structure of a Table" in this document.
  50.  
  51.  
  52.        VIEWING AND CREATING A TABLE STRUCTURE - VERSION 5.0
  53.  
  54.    1.  To view a table structure, choose Tools | Utilities | Info
  55.        Structure.
  56.  
  57.    2.  From the Select Name dialog box, select a table name, and
  58.        choose OK.  The Structure Information dialog box appears.
  59.  
  60.    3.  In order to be able to print the structure, you must first
  61.        save this information, by choosing Save As.  The Save
  62.        Structure Information dialog box appears.  In the File
  63.        Name text box, type :PRIV:STRUCT.DB.  Choose OK to save
  64.        and return to the Structure Information dialog box.
  65.        Choose Done to return to the Desktop.  To print the
  66.        structure of the table, refer to "Printing the Structure
  67.        of a Table" in this document.
  68.  
  69.  
  70.   VIEWING AND CREATING A TABLE STRUCTURE - VERSIONS 1.0 AND 4.5
  71.  
  72.    1.  To view a table structure, choose File | Utilities | Info
  73.        Structure.
  74.  
  75.    2.  From the Select Name dialog box, select a table name, and
  76.        choose Done.  Paradox displays the Structure Information
  77.        dialog box and creates the STRUCT.DB temporary table in
  78.        the private directory.
  79.  
  80.  
  81.                 PRINTING THE STRUCTURE OF A TABLE
  82.  
  83. From the Main menu, choose File | Open | Table and select
  84. :PRIV:STRUCT.DB.  The :PRIV:STRUCT.DB table contains 12 fields
  85. that depict information about the original table.  A sample of
  86. this table is pictured below.
  87.  
  88. Field Name             Type  Size   Comment
  89. --------------------   ----  ----   ---------
  90. Field Name             A      25
  91. Type                   A       1
  92. Size                   S
  93. Key                    A       1
  94. _Invariant Field Id    S
  95. _Required Value        A       1    Validity Check
  96. _Min Value             A     255    Validity Check
  97. _Max Value             A     255    Validity Check
  98. _Default Value         A     255    Validity Check
  99. _Picture Value         A     175    Validity Check
  100. _Table Lookup          A      81    Validity Check
  101. _Table Lookup Type     A       1    1=Just Current field,
  102.                                       Fill no help
  103.                                     2=All Corresp. Fields,
  104.                                       Fill no help
  105.                                     3=Just Current field,
  106.                                       Help & Fill
  107.                                     4=All Corresp. Fields,
  108.                                       Help & Fill
  109.  
  110. A quick report on the :PRIV:STRUCT.DB table yields a multi-
  111. pagewidth report as a default with no formatting.  This may
  112. suffice if the objective is just to print the Field Name, Size,
  113. Type, and Key. If you want additional information on Validity
  114. Checks in a formatted layout, design a report for future use.
  115.  
  116. In general, you will find that designing a few reports for
  117. various purposes, all specifying :PRIV:STRUCT.DB as the table in
  118. the data model, will make it easy for you to get the structure
  119. information you need quickly and easily.
  120.  
  121.  
  122. DISCLAIMER: You have the right to use this technical information
  123. subject to the terms of the No-Nonsense License Statement that
  124. you received with the Borland product to which this information
  125. pertains.
  126.