home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / TXTDIF.ZIP / TEXT2DIF.DOC next >
Encoding:
Text File  |  1986-12-03  |  3.8 KB  |  78 lines

  1.       TEXT  TO  DIF  CONVERSION  UTILITY
  2.  
  3.                                by George Kinal
  4.                                   636 So. Carolina Ave
  5.                                   Washington DC 20003
  6.  
  7.    This program accepts tables or lists of data from an input file and
  8. converts to DIF (Data Interchange Format) files. DIF is accepted or
  9. required by many graphics and other applications programs. The input
  10. data file might be one generated by using a text/word processor, or
  11. received from a mainframe data base. Also, if you wish to transfer data
  12. from an incompatible spreadsheet (SuperCalc, Multiplan) to one that 
  13. accepts DIF (VisiCalc, 1-2-3), use a "print to disk" or "output to disk"
  14. command to set up the text file, then convert to DIF using the utility.
  15.  
  16.    Three forms of input table or list can be processed:
  17.  
  18.                (1)  TABLE
  19.  
  20.                This is a rectangular table of data with NO EMPTY
  21.                ENTRIES  and with one or more spaces (blanks)
  22.                separating one column from another. Example:
  23.  
  24.                        DATA    January    April    July
  25.                      SALES     130.20     140.0000 150.1
  26.                      EXPENSES     100     100     150
  27.                      --------- --------- --------- -------
  28.                        PROFIT   30.20      40       0.10
  29.  
  30.                (2)  DELIMITED
  31.  
  32.                        Each row of the list is a series of characters,
  33.                        with some delimiting character such as the
  34.                        vertical bar  (ASCII 124)  or a comma (ASCII 44)
  35.                        separating one entry from the next. You must know
  36.                        and specify the decimal ASCII value of the
  37.                        delimiting character used.  Example:
  38.  
  39.                                DATA,January,  April,  July
  40.                                SALES,130.20,140.0000,150.10
  41.                                EXPENSES,100,100,150
  42.                                --------,--------,--------,--------
  43.                                PROFIT,30.20,40.00,0.10
  44.  
  45.  
  46.                (3)   FIXED  FORMAT
  47.  
  48.                        This is a rectangular matrix of cells, ALL OF THE
  49.                        SAME WIDTH. Cells may be "empty" (i.e., filled with
  50.                        the space (blank) characters.  Example:
  51.  
  52.                                        JANUARY   APRIL   JULY
  53.                                SALES    130.20 140.00  150.10  
  54.                                EXPENSES  100   100     150     
  55.                                --------------------------------
  56.                                PROFIT  30.20   40.00   0.10    
  57.  
  58.                        (It may not be obvious, but this example has
  59.                        cells that are 8 characters wide; padding by
  60.                        blanks is permitted).
  61.  
  62.    The program was written in and compiled under Turbo Pascal.
  63. Input file size limitations are: 128 rows; each string (row) cannot
  64. exceed 255 characters in length. The program assumes that data is in
  65. row-wise form, that is, each row represents a collection of related
  66. data (in the DIF terminology, the rows are the vectors and the
  67. columns are tuples). This arrangement is more compatible with most
  68. graphics programs, and also is consistent with data downloaded from
  69. elsewhere, when each series of data points between carriage returns
  70. belongs to the same related function or time series, as in the
  71. examples shown above.
  72.  
  73.    Another important point to keep in mind is that the input file
  74. must not contain any blank lines. Some spreadsheet programs, when
  75. in the "print to disk" mode, will insert blank lines as margins,
  76. just like when printing to paper. Either set the margins to zero,
  77. or use a text processor to edit out the superfluous lines.
  78.