home *** CD-ROM | disk | FTP | other *** search
- TEXT TO DIF CONVERSION UTILITY
-
- by George Kinal
- 636 So. Carolina Ave
- Washington DC 20003
-
- This program accepts tables or lists of data from an input file and
- converts to DIF (Data Interchange Format) files. DIF is accepted or
- required by many graphics and other applications programs. The input
- data file might be one generated by using a text/word processor, or
- received from a mainframe data base. Also, if you wish to transfer data
- from an incompatible spreadsheet (SuperCalc, Multiplan) to one that
- accepts DIF (VisiCalc, 1-2-3), use a "print to disk" or "output to disk"
- command to set up the text file, then convert to DIF using the utility.
-
- Three forms of input table or list can be processed:
-
- (1) TABLE
-
- This is a rectangular table of data with NO EMPTY
- ENTRIES and with one or more spaces (blanks)
- separating one column from another. Example:
-
- DATA January April July
- SALES 130.20 140.0000 150.1
- EXPENSES 100 100 150
- --------- --------- --------- -------
- PROFIT 30.20 40 0.10
-
- (2) DELIMITED
-
- Each row of the list is a series of characters,
- with some delimiting character such as the
- vertical bar (ASCII 124) or a comma (ASCII 44)
- separating one entry from the next. You must know
- and specify the decimal ASCII value of the
- delimiting character used. Example:
-
- DATA,January, April, July
- SALES,130.20,140.0000,150.10
- EXPENSES,100,100,150
- --------,--------,--------,--------
- PROFIT,30.20,40.00,0.10
-
-
- (3) FIXED FORMAT
-
- This is a rectangular matrix of cells, ALL OF THE
- SAME WIDTH. Cells may be "empty" (i.e., filled with
- the space (blank) characters. Example:
-
- JANUARY APRIL JULY
- SALES 130.20 140.00 150.10
- EXPENSES 100 100 150
- --------------------------------
- PROFIT 30.20 40.00 0.10
-
- (It may not be obvious, but this example has
- cells that are 8 characters wide; padding by
- blanks is permitted).
-
- The program was written in and compiled under Turbo Pascal.
- Input file size limitations are: 128 rows; each string (row) cannot
- exceed 255 characters in length. The program assumes that data is in
- row-wise form, that is, each row represents a collection of related
- data (in the DIF terminology, the rows are the vectors and the
- columns are tuples). This arrangement is more compatible with most
- graphics programs, and also is consistent with data downloaded from
- elsewhere, when each series of data points between carriage returns
- belongs to the same related function or time series, as in the
- examples shown above.
-
- Another important point to keep in mind is that the input file
- must not contain any blank lines. Some spreadsheet programs, when
- in the "print to disk" mode, will insert blank lines as margins,
- just like when printing to paper. Either set the margins to zero,
- or use a text processor to edit out the superfluous lines.