home *** CD-ROM | disk | FTP | other *** search
- CSV to Text (Public Domain version)
- ===========
-
- This document was last updated on: 14-Jun-92
-
- Copyright
- =========
-
- All aspects of this application are © copyright Architype Software 1992.
-
-
- Using CSVtoText
- ===============
-
- This application, as its name suggests, takes a CSV file and processes it to
- produce a text file. Using the application couldn’t be easier, just drop a
- CSV file onto the iconbar icon and the main window will be displayed (if it
- is not already open). Update the filename to save the text file as and
- either press <RETURN> (if the caret is in the writable icon), click on the
- OK button, or drag the text file icon to a filer window (or other
- appropriate application window or icon).
-
- The main window that appears is divided into two areas. The left hand area
- shows the option settings which will affect the way the CSV file is
- processed to produce the text file. The right hand area is a standard save
- dialogue box, which allows a specific filename to entered, etc.
-
-
- Configuration
- =============
-
- To allow control over how a CSV file is acted upon, there are a number of
- configuration options available. These affect the default destination
- filename (see the section ‘Filename’) and how the CSV file is processed to
- produce the text file (see the section ‘Options’).
-
- Note: All the options are set to off and cannot be turned on in this Public
- Domain version. The leafname can be edited though, but cannot be saved.
-
- Filename
- --------
-
- There are two options which allow control over the way the source filename
- is processed to produce the destination filename:
-
- ‘Set leafname to:’ - If this option is on then the leafname in the writable
- icon (to the right of the option) will replace the
- leafname from the source filename.
-
- ‘Use leafname only’ - If this option is on then only the leafname is used
- for the destination filename.
-
- Note: The leafname can be edited at all times. If there is no text in the
- writable icon when either ‘OK’ or ‘Save’ is selected, then the leafname
- ‘TextFile’ will be inserted automatically. The leafname will be used by
- default in the save window writable icon (on the main window display) in two
- circumstances:
-
- 1. The source filename is ‘<Wimp$Scrap>’, caused by dragging a CSV file
- from another application onto this application’s iconbar icon.
-
- 2. The destination filename is set to ‘<Wimp$Scrap>’, caused by dragging
- the save text icon onto another application’s window (and not a filer
- window).
-
- In the table below, the source filename is ‘adfs:...CSVfile’ and the
- leafname for the option ‘Set leafname to:’ is ‘TextFile’.
-
- ‘Set leafname to:’ ‘Use leafname only’ Destination filename
- ------------------ ------------------- --------------------
- Off Off adfs:...CSVfile
- On Off adfs:...TextFile
- Off On CSVfile
- On On TextFile
-
- Options
- -------
-
- ‘Lines output/record’ - With this option is off, the value chosen for the
- minimum number is calculated as the number of
- fields selected for output (and will be auto-
- matically updated if ‘Output selected fields’ is
- updated.
-
- ‘Ignore blank fields’ - With this option is off, all fields, blank or
- not, will be output to the text file, and so
- there may be blank lines in the output text
- between fields of the same record.
-
- ‘Output field names’ - With this option is off, the field names are not
- output to the text file at the start of each
- field line.
-
- ‘Output selected fields’ - With this option is off, all the fields will be
- output.
-
-
- RISC OS 3 features
- ==================
-
- The main window can be iconized onto the Pinboard by clicking on the
- window’s close icon whilst holding down the SHIFT key.
-
- When dragging the text file icon, the icon itself can be dragged (using
- the module DragASprite). You will need to type the following line before
- it will take affect: *FX 162,28,2
-
- The pointer will change to a menu icon when moved over the menu button on
- the main window.
-
-
- Limitations
- ===========
-
- The first line of the CSV file must be the field names. This information is
- required to build the field menu and to calculate the number of fields per
- record. If the CSV file doesn’t have this line, add one manually using a
- suitable text editor before using the file with this application.
-
- The CSV file must use commas (‘,’) as the field separator. (It wouldn’t be
- a Comma Separated Value file otherwise!)
-
- The maximum number of fields in a CSV file which can be processed is 10.
-
- The maximum value which can be set for ‘Lines output/record’ is 49.
-
- The conversion of the CSV file works by reading in the source CSV file
- whilst writing to the destination text file. This means that the
- destination filename MUST be different from the source filename. It is,
- however, possible to drag a CSV file from an application onto CSVtoText and
- then drag the text file icon onto another application, as CSVtoText uses its
- own scrap file (in the same directory as the normal scrap file) when storing
- the CSV file. This scrap file is automatically deleted when CSVtoText is
- quit by one of the normal procedures.
-
-
- End User Licence Conditions
- ===========================
-
- ‘Software’ refers to the code for all versions of !CSVtoText and related
- software.
-
- ‘User’ refers to the person or organisation who has purchased the software.
-
- The conditions of use are:
-
- 1. This Public Domain version of the Software has been placed into the
- public domain. It may be freely copied and distributed for non-profit
- making purposes (a small charge to cover cost of distribution is
- allowed, however), so long as the code is not altered (apart from
- customising !Run/!Boot files) and this text file remains present and
- unaltered.
-
- 2. No part of the Software may be included within programs, public domain
- or otherwise, written by the User.
-
- 3. No liability will be accepted by the author or Architype Software for
- the suitability of the Software for any purpose, or for any loss due to
- the use or mis-use of the Software.
-
- If you would like to purchase the full version of !CSVtoText, which has all
- the options available (see the !Help_1-01 text file for full details), the
- cost is as follows:
-
- 'A' : Businesses, Secondary schools, and higher education establishments.
-
- 'B' : Home users and Primary/Infant/Junior schools.
-
- Price each: less than 10 copies 10 or more copies
- ------------------- -----------------
- 'A' : £9.00 £6.00
- 'B' : £5.00 £3.00
-
- When purchasing multiple copies, please supply addresses of each site for
- registration purposes.
-
- If purchasing 10 or more copies, you will receive 1 copy of the software
- and a licence to distribute the software to those sites named.
-
- Please make all cheques payable to Architype Software.
-
- Note that the above prices include P&P and that Architype Software is not
- registered for VAT.
-
- Send all orders, or any queries/suggestions to:
-
- Architype Software
- 54 Parkes Hall Road
- Woodsetton
- Dudley
- West Midlands
- DY1 3SR
-