home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / INS-QFI3.LHA / QuickFile3 / Docs / QuickFile.doc < prev   
Encoding:
Text File  |  1995-09-13  |  45.4 KB  |  1,321 lines

  1.   Quickfile v3.16.6 copyright 1992-1995 by Alan Wigginton
  2.  
  3. I accept no liability for any loss or damage resulting from the use of
  4. this program.  Users must evaluate the program and decide its usefulness
  5. for their own purposes.
  6.  
  7. QuickFile is not Public Domain, however it can be freely distributed
  8. provided all documentation and sample files are included unchanged.
  9.  
  10. QuickFile is a flexible, flat file database. It uses random access with
  11. indexing for fast access to records. Files can be larger than available
  12. ram, but as much of the file as possible is kept in ram to reduce disk
  13. accesses. Features include:
  14.  
  15.     - Multiple indexes with unique or non-unique keys
  16.     - Data types include character, date, integer, floating point,
  17.       calculation, cycle, image and external
  18.     - Up to 250 characters per field  and 250 fields per record.
  19.     - Form and list style displays and reports.
  20.     - Unlimited number of views of each file.
  21.     - Sort over any number of keys, ascending and descending order.
  22.     - Search operators include Like, Equal, Between, Sounds Like, Not Like
  23.       and Not Equal.
  24.     - Fields can be added, changed, or deleted at any time.
  25.     - ASCII export/import
  26.     - Multi column label printing.
  27.     - Multi-level grouping and totalling
  28.     - Any number of open files each in its own resizable window
  29.     - Online context sensitive AmigaGuide help
  30.     - ARexx port supporting macros and commands from external programs
  31.     - Easy to intuition interface with font sensitivity
  32.  
  33. System Requirements
  34.  
  35.     Any Amiga computer with WB 2.04 or later.
  36.     1 meg or more RAM recommended
  37.  
  38.     Required libraries
  39.     asl.library
  40.     mathieeedoubbas.library
  41.     mathieeedoubtrans.library
  42.  
  43.     Optional libraries
  44.     iffparse.library       - to display Image fields
  45.     rexxsyslib.library     - to use ARexx
  46.     amigaguide.library     - to use on-line help
  47.  
  48.  
  49. QuickFile will work with XFH-handler (a file compression program) but
  50. XFH-handler requires that the decompressed file fit completely in ram.
  51. To work with QuickFile such programs must support update of an existing
  52. file.
  53.  
  54. QuickFile is written in C using DICE version 3.0.
  55.  
  56. ====== CONDITIONS OF USE =====
  57.  
  58. This version of the program can be used for free on the condition that you
  59. write and let me know that you are using it - a postcard will do. The
  60. About requester is displayed when the program starts and each time a
  61. window is closed.
  62.  
  63. Donations of money, stamps, software etc will be gratefully accepted. If
  64. you would like to register for updates, bug fixes and support, please send
  65. at least $20.00 to the address below. Overseas users please use
  66. international money order or bank draft - not personal cheques. Any cash
  67. currency is OK, but you send it at your own risk.
  68.  
  69.       Alan Wigginton
  70.       23 Carissa St
  71.       Shailer Park, Queensland  4128.
  72.       AUSTRALIA
  73.  
  74.       Phone 61 7 208 9441 (from overseas. Remember time differences)
  75.           07 208 9441 (from within Australia)
  76.  
  77.       Internet: alanw@mail.powerup.com.au
  78.       FidoNet:  Alan Wigginton   3:640/463
  79.  
  80. Registration will get you the latest version of the program (without the
  81. requester) and prompt attention by email (or snail mail)  to any problems
  82. you may encounter. You will also be advised when major upgrades are
  83. available.
  84.  
  85. I would appreciate any comments or suggestions.
  86.  
  87. WARNING. QuickFile is a random access data base that buffers records in
  88.      memory. Failure to exit the program properly after updates are
  89.      made will result in lost updates.
  90. ALWAYS     exit the program before a reboot or power off.
  91. DO     backup your files regularly.  When backing up a data base make
  92.      sure you backup all of the files - definition, data and indexes.
  93.  
  94. To install QuickFile to a hard disk or floppy, drag the QuickFile icon to
  95. the drawer of your choice. If you want to use the AmigaGuide help system,
  96. copy QuickFile.guide to the same directory. To install AmigaGuide
  97. doubleclick on the InstallAmigaGuide icon.
  98.  
  99. Icons are not generated by the program. Sorry, but if you want them you
  100. will have to create them yourself.
  101.  
  102. ===== Starting QuickFile ======
  103.  
  104. QuickFile may be started from Workbench using either the program icon or a
  105. project icon.
  106.  
  107. It may also be started from the CLI. The program name may be followed by
  108. a file name.
  109.  
  110. QuickFile opens a window on the default public screen. The default window
  111. size is a few pixels smaller than the screen size. Window size and
  112. position are saved when a view is saved.
  113.  
  114. ===== About Views ======
  115.  
  116. Views allow you to display data from a file in different ways. There are
  117. two basic types FORM and LIST.
  118.  
  119. Each view has its own field titles, positions and lengths, window size and
  120. report details. Once you have a view set out the way you want it, you can
  121. save it for future use.
  122.  
  123. The Define View requester is used to select or change the fields included
  124. in a view. The positions of fields on a form can be changed by dragging
  125. them around with the mouse.
  126.  
  127. When you open a file, QuickFile looks for a view called filename.VIEW. To
  128. automatically use your favourite view, save it as filename.VIEW in the
  129. same directory as the data base.
  130.  
  131. If you want to keep things simple and are happy with the default view, you
  132. need not define a view at all.
  133.  
  134. Views are typically used to print labels, export or import selected fields
  135. or print lists containing only selected fields.
  136.  
  137.  
  138. =========== Keyboard ===================
  139.  
  140. The following keys are available when the cursor is not in a string
  141. gadget (Press RETURN or ESC to de-activate a string gadget):
  142.  
  143.    RETURN        Same as OK button
  144.    ESC            Same as CANCEL button
  145.    TAB            Activate first string gadget
  146.    HELP         Displays help. Requires Amigaguide.library in libs: and
  147.             QuickFile.guide in the same drawer as QuickFile.
  148.    Down arrow        Next record
  149.    Up arrow        Previous record
  150.    Shift-down arrow Next page
  151.    Shift-up arrow   Previous page
  152.  
  153. In requesters with a single listview, up and down arrows will move through
  154. the items.
  155.  
  156. The following keys can be used in string gadgets:
  157.  
  158.    TAB              Move to next field
  159.    Shift-TAB          Move to previous field
  160.    Down arrow          Move to next field
  161.    Up arrow          Move to previous field
  162.    Return          De-activate string gadget if value is valid
  163.    ESC              De-activate string gadget ignoring errors
  164.    right Amiga-X      Erase all text in the gadget (as does Control-X)
  165.    right Amiga-Q      Restores the text that was present before you
  166.               changed it.
  167.    Shift-left arrow   Moves the cursor to the beginning of the field.
  168.    Shift-right arrow  Moves the cursor to the end of the field.
  169.    Shift-Del          Erases all characters from the cursor to the end of
  170.               the gadget.
  171.    Shift-Backspace    Erases all characters to the left of the cursor.
  172.  
  173. ============== MAIN WINDOW =================
  174.  
  175. Windows can be resized using the sizing gadget. The zoom gadget will
  176. iconify the window (reduce to a short title bar).
  177.  
  178. ===== Form Display ======
  179.  
  180. The FORM DISPLAY shows a single record per screen in the format specified
  181. by the current view.
  182.  
  183. Field positions can be changed by dragging fields around the window with
  184. the mouse. Field sizes can be changed by dragging the bottom right corner
  185. of the drag box. Note that although field height can be changed, only
  186. images will use more than a single line.
  187.  
  188. Pressing the "R" button displayed at the start of an external field will
  189. run the command defined for the field, provided the field is not empty.
  190.  
  191. To add or delete fields, change field titles or displayed lengths, press
  192. the VIEW button;
  193.  
  194. ===== List Display ======
  195.  
  196. The LIST display shows as many records as will fit in the window with a
  197. single line per record.
  198.  
  199. To update a record double click on it with the left mouse button
  200.  
  201. Before using the Modify or Delete buttons, select a record using a single
  202. press of the left mouse button.
  203.  
  204. In list mode, field position and length can only be changed using the
  205. Define View requester.
  206.  
  207. ===== Buttons =====
  208.  
  209. GoTo
  210.   GoTo finds a record by key value using the current index. This makes
  211.   access extremely fast, even on large files.
  212.  
  213.   You only need to enter enough of the key to identify the record you
  214.   want, but you must start at the first key field.
  215.  
  216. Modify
  217.   Allows you to modify the current record. The horizontal scroll gadget
  218.   can be used to scroll the display and access fields that do not fit in
  219.   the window.
  220.  
  221.   For images or external fields, you can enter the file name in the string
  222.   gadget or press the arrow button to get a file requester. Names entered
  223.   into the string gadget are not validated.
  224.  
  225. Insert
  226.   Displays a blank form for you to enter values for a new record.
  227.  
  228.   The Copy button will copy the contents of the previous record. This is
  229.   useful if you are entering records with similar values in some fields of
  230.   each record. Warning - it replaces anything currently on screen.
  231.  
  232.   Press Cancel (or ESC) to return to Browse mode.  NB When Cancel is
  233.   pressed any values displayed on the screen will be lost.  Press OK
  234.   to insert the record, then Cancel.
  235.  
  236. Delete
  237.  
  238.   Deletes the current record. A requester is displayed to confirm.
  239.   Once the record has been deleted you cannot get it back.
  240.  
  241. Form/List
  242.   Toggles the current view between FORM and LIST formats.
  243.  
  244. View
  245.   Pressing the VIEW button displays the Define View requester with the
  246.   current view.
  247.  
  248. Images
  249.   The Images checkbox in the main window toggles image display on and off
  250.   for faster processing.
  251.  
  252.  
  253. ===== Scrolling =====
  254.  
  255.   Scrolling is controlled by two slider type gadgets.
  256.  
  257.   Vertical Slider
  258.     This controls movement through the file and works in the usual way.
  259.     Scrolling may also be done using the up and down arrow keys for a
  260.     single record, or the shifted keys for a full screen.
  261.  
  262.   Horizontal Slider
  263.    If there are more fields than will fit in the current window, this
  264.    can be used to display the next group of fields.
  265.  
  266. ===========PROJECT  MENU ===================
  267.  
  268. OPEN
  269. Opens a new file in a new window.
  270.  
  271. LOAD
  272. Opens a new file, replacing the file in the current window.
  273.  
  274. SAVE
  275. Writes all updated blocks and indexes to disk.
  276.  
  277. CLOSE
  278. Writes all updated records and indexes to disk and closes the file and
  279. window.  Closing the last window will exit the program.
  280.  
  281. SAVE AS
  282. Creates a new file from the current file. Indexes for the new file are not
  283. created - they will be built when you first open the new file.
  284.  
  285. NEW
  286. Opens a new window for you to define a new file.
  287.  
  288. ALTER
  289. Displays the file definition panel for you to alter the current file
  290. definition. Note that the data and any updated views are saved first.
  291.  
  292. EXPORT
  293. Writes all, or selected, records to an ASCII file for exchanging data with
  294. other applications such as word processors, other data bases etc. The
  295. order and length of the fields in the export file is determined by the
  296. current view. Before doing the export, you may need to create a new view
  297. to give the record layout you want. See export section for details.
  298.  
  299. IMPORT
  300. Loads records from an ASCII file into your data base. The sequence and
  301. length of fields in the input file are determined from the current view.
  302. You should create and select the view before selecting the import
  303. function. See Import section for details.
  304.  
  305. REORGANISE
  306. Reorganises a file by creating a new optimised version and then copying
  307. that version over the main file.
  308.  
  309. Reorganising is not essential, but if you have been doing many additions
  310. and deletions, it may reduce file size and will improve performance.
  311.  
  312. During reorganisation free space is adjusted to the value specified in
  313. the file definition and records are physically stored in the sequence of
  314. the active key. Select your most used key sequence before reorganising to
  315. optimise access with that key.
  316.  
  317. ========= VIEW MENU ==========
  318.  
  319. VIEWS
  320. Displays a requester showing a list of currently loaded views for you to
  321. choose from. If you have not created or loaded any views, you will have a
  322. single view called filename.VIEW.
  323.  
  324. Press the Close button to drop the selected view. You cannot close all
  325. views - you must have at least one loaded.
  326.  
  327. NEW
  328. Creates a new view called 'unnamed' and displays it in the define View
  329. requester.
  330.  
  331. LOAD
  332. Loads another view from disk which becomes the current view.
  333.  
  334. If fields in the view cannot be located in the file definition, they will
  335. be dropped, and a requester displayed to warn you. This will happen if you
  336. delete fields from the file or change field names in the file definition.
  337.  
  338. SAVE
  339. Saves changes made to an existing view. If the view has been newly created
  340. a file requester will be displayed to confirm the name.
  341.  
  342. SAVE AS
  343. Saves the current view under a new name. A view can have any name but the
  344. .view suffix should be used for easy identification.
  345.  
  346. RESET FORM
  347. Resets field positioning back to the default.
  348.  
  349. ========== ORDER MENU =========
  350.  
  351. INDEXES
  352. Displays a list of indexes. Choose an index fromt the list to change the
  353. display sequence. If you have performed a sort or selection, the list will
  354. include "Selected" and/or "Sorted".
  355.  
  356. Pressing the Close Button will remove a "Sort" or "Selection" from memory
  357. and free the space used. To remove any permanent index use the
  358. Project/Alter menu item to alter the file definition.
  359.  
  360. SORT
  361. Displays the sort requester to sort into a new sequence
  362.  
  363. SHOW SORTED
  364. Uses last sort for the display sequence.
  365.  
  366. REBUILD INDEX
  367. Rebuilds the current index from the data file.
  368.  
  369. This can be used if the index and data files are inconsistent for some
  370. reason (eg a system failure). The index is rebuilt from the data file.
  371.  
  372. Try using this if the program is failing with a 'Block not found message'
  373. or any messages to the effect that QuickFile could not find a record it
  374. looked for.
  375.  
  376. ======= SELECTION MENU ===========
  377.  
  378. SELECT
  379. Searches for records matching your selection criteria. See later for full
  380. details.
  381.  
  382. SHOW SELECTED
  383. Displays current selection
  384.  
  385. SHOW ALL
  386. Displays all records. The current selection is retained.
  387.  
  388. ======= PRINT MENU ===============
  389.  
  390. DISPLAYED RECORDS
  391. Prints the records currently displayed on the screen. This will be a
  392. single record for a form display.
  393.  
  394. ALL RECORDS IN CURRENT INDEX
  395. Prints all records in the current index (or Sort or Selection).
  396.  
  397. The fields printed and the style (form or list) of report is determined by
  398. the current view.
  399.  
  400. See Print Requester for full details
  401.  
  402. =============== OPTIONS MENU ====================
  403.  
  404. ABOUT
  405. Too obvious to explain
  406.  
  407. BUFFERS
  408. Displays number  of blocks in the file and the maximum and in-use number
  409. of RAM buffers. You can change the maximum number of ram buffers. To
  410. permanently change the maximum number of buffers, use the Project/Alter
  411. menu item to change the file definition.
  412.  
  413. RUN AREXX MACRO
  414.  
  415. You run an ARexx macro by selecting the Options/ARexx macro menu item.
  416. This brings up a requester for you to enter the macro name.
  417.  
  418. Pressing the 'File' button brings up the file requester for you to choose
  419. the file to be run.
  420.  
  421. If you don't enter a file extension it defaults to ".QuickFile".
  422.  
  423. QuickFile sets the current directory to the database directory before
  424. passing the macro to ARexx. ARexx will look in this directory first, then
  425. in the REXX: directory. I suggest you put macros written for a particular
  426. database in its directory and general macros in the REXX: directory.
  427.  
  428. You can also run an ARexx macro automatically on start up to do things
  429. like loading additional views or selecting an index. Name the script
  430. filename.STARTUP and place it in the same directory as the file.
  431.  
  432. The display is not normally redrawn until the macro completes.
  433.  
  434. This menu item is disabled if RexxSupport.library is not in your libs:
  435. directory. ARexx must also have been started using REXXMAST before you can
  436. run a macro successfully.
  437.  
  438. See the Arexx commands documentation for a description of the commands
  439. available from ARexx.
  440.  
  441.  
  442. CONFIGURATION
  443.  
  444. The Configure Requester is obtained by selecting Configuration on the
  445. Options menu.
  446.  
  447. The settings are saved in a file called "QuickFile.config" in the same
  448. directory as the QuickFile program.
  449.  
  450. Memory Save Checkbox
  451.     Selecting this checkbox tells QuickFile to reduce memory usage.
  452.     It defaults to selected. Deselect this to speed up sorting if you
  453.     are not short of memory.
  454.  
  455. Online Help
  456.     Selecting this checkbox makes the context sensitive AmigaGuide help
  457.     available. It defaults to selected. Help will only be available if you
  458.     have AmigaGuide installed.
  459.  
  460. FONTS
  461.  
  462. To change a font, press the arrow gadget beside the font name. This will
  463. bring up a font requester for you to select a typeface and size.
  464. Note that very wide fonts may trash some gadget imagery.
  465.  
  466. Standard Font
  467.     Specifies the font to use for text in most gadgets. This may be a
  468.     proportional font.
  469.  
  470. List Font
  471.     This is the fixed width font used for list displays. This includes
  472.     QuickFile's list display and Listview gadgets.
  473.  
  474. Report Font
  475.     This font is used for printing reports to the screen. Use a narrow
  476.     font to display more characters on the screen. This also must be a
  477.     fixed width font.
  478.  
  479. Save button
  480.     Saves the settings in the QuickFile.config file and uses the settings.
  481.  
  482. Use button
  483.     Uses the settings but does not save them for permanent use.
  484.  
  485. Cancel button
  486.     Cancels any changes made and retains the previous settings
  487.  
  488.  
  489. ============ DEFINE VIEW REQUESTER =================
  490.  
  491. Name
  492.   Identifies the view. This can be changed for a new view, but is display
  493.   only for an existing view.
  494.  
  495. Available Fields List
  496.   Lists the fields in the current file. Clicking on a field will add it to
  497.   the current view.
  498.  
  499. View Fields List
  500.   Lists the fields in the current view. Clicking on a field in this list
  501.   will select it and display its title and length below the list box.
  502.   These can then be changed if required. The changes will only affect the
  503.   current view.
  504.  
  505.   New fields are added before the currently selected item.
  506.  
  507. Type Buttons
  508.   Choose type of view - FORM or LIST.
  509.  
  510. Headings Check Box
  511.   Field names are displayed if this is checked. This is normally only
  512.   turned off for printing labels.
  513.  
  514. Field Title String Gadget
  515.   This is the text gadget under the View Fields list. You can change the
  516.   field title for this view only. For example you may want a short title
  517.   for a short field on the list display but use the full name for the form
  518.   display. The title can be blank. This gadget is disabled unless one of
  519.   the View Fields is selected.
  520.  
  521. Length String Gadget
  522.   Use this to reduce or increase the field display length for this view
  523.   only.
  524.  
  525. IMPORTANT NOTE: You must press enter after changing either the field name
  526.   or length or your changes will be ignored.
  527.  
  528. Clear Button
  529.   Deletes all fields from the View Fields list.
  530.  
  531. Delete Button
  532.   Deletes the selected field from the View Fields list.
  533.  
  534. =================== SORT REQUESTER ==================
  535.  
  536. Sort creates a temporary index which is discarded when the file
  537. is closed. The sort sequence will be maintained as you add or delete
  538. records.
  539.  
  540. The sort technique used requires that all sort keys be resident in memory,
  541. so record buffers are freed to increase the memory available to the sort.
  542. If you are short of memory, it may help to sort using less than the full
  543. length of long fields.
  544.  
  545. Available Fields
  546.   Lists the fields defined in this file. Clicking on a field will add it
  547.   to the Sort Fields.
  548.  
  549. Index Fields
  550.   Lists the fields to be used for the sort. The order of the fields
  551.   in this box determines their priority in the sort. The first field is
  552.   the primary key, the second will only be used for records where the
  553.   first keys are equal and so on.
  554.  
  555.   Clicking on a field in this list will select it and display its name
  556.   and length below the list box.
  557.  
  558.   New fields are inserted before the currently selected field. To add a
  559.   field to the end of the list, select the "== End ==" entry.
  560.  
  561. Length
  562.   Changing this length allows you to sort over part of a long field, to
  563.   save memory and speed sorting
  564.  
  565.   IMPORTANT: YOU MUST PRESS ENTER OR RETURN AFTER CHANGING A LENGTH OR
  566.          YOUR CHANGES WILL BE IGNORED
  567.  
  568. Order
  569.   Select A..Z for ascending sequence or Z..A for descending. You can mix
  570.   these on different fields in the same index.
  571.  
  572. Clear Button
  573.   Deletes all fields from the Index Field List
  574.  
  575. Delete
  576.   Deletes the selected field from the Index Fields list.
  577.  
  578. ==================== SELECTION ====================
  579.  
  580. A selection is a sub-set of the data base that matches specified
  581. conditions. QuickFile searches through the whole data base looking for
  582. records with fields matching requested values, and creates an index
  583. containing these records. You can then browse, print, export or create a
  584. new database with the selected records.
  585.  
  586. The selection is updated automatically for deletions and changes but not
  587. additions.
  588.  
  589. When displaying a selection, the title bar will show the number of records
  590. in the selection.
  591.  
  592. The selected data will be in the same sequence as the current Index.  You
  593. can sort it into another sequence if required.    If the current index is
  594. the result of a previous selection, only the selected records are
  595. searched.
  596.  
  597. You can use any number of criteria for a search, but the more you have the
  598. slower the search will be.
  599.  
  600. ============== Search Panel =================
  601.  
  602. The Search Panel displays a list of search criteria with buttons for
  603. inserting, modifying and deleting them.
  604.  
  605. Two values can be specified for each item. The second value is primarily
  606. for the Between operator, but it can be used to specify an alternative
  607. value for the other operators.
  608.  
  609. Clicking on the Insert or Modify displays the Search Details requeste for
  610. you to insert or modify the details.
  611.  
  612. For insertions, the new item will be inserted before the selected item. To
  613. insert a new item at the end of the list, select the "== End ==" item.
  614.  
  615. Clicking on delete will bring up a requester for you to confirm the
  616. deletion of the selected item.
  617.  
  618. Search criteria linked with 'and' will select only records that match both
  619. criteria, while search criteria linked with 'or' will select records that
  620. match either criteria.
  621.  
  622. 'And' has higher precedence so criteria are formed into groups split by
  623. 'or'. All criteria in a group must be satisfied for a record to be
  624. selected, but a record will be selected if it matches any group. That is
  625. confusing and is probably best explained with an example:
  626.  
  627.       Occupation equal     programmer
  628.   and location     equal     sydney
  629.   or  Occupation equal     programmer
  630.   and location     equal     canberra
  631.  
  632. This will find all programmers who live in Sydney or Canberra. Note that
  633. Occupation had to be repeated. The following would give all programmers
  634. who live in Sydney and EVERBODY who lives in Canberra.
  635.  
  636.       Occupation equal     programmer
  637.   and location     equal     sydney
  638.   or  location     equal     canberra
  639.  
  640. You can also do things like
  641.  
  642.        Name     like     john
  643.   and  Name     notlike smith
  644.  
  645. which would find all persons named John, except those named John Smith.
  646.  
  647. ========= Search Details ======================
  648.  
  649. And, Or Buttons
  650.   Choose AND or OR to specify how this search item is combined with the
  651.   previous one. These are not present for the first item.
  652.  
  653. Available Fields List
  654.   Lists all the fields in the file defintion. The current selection is
  655.   displayed under the list.
  656.  
  657. Comparison Operator (like, equal etc)
  658.   Choose the operator to be used for this search item. (see below)
  659.  
  660. Value 1
  661.   The primary search value. It is always used. If you want to search for
  662.   empty fields leave this empty.
  663.  
  664. Value 2
  665.   This is the secondary search value. Its primary use is with the between
  666.   operator but can be used to enter an second search value for the other
  667.   operators.
  668.  
  669.   Note that with Not Equal and Not Like, value 1 and value 2 are joined by
  670.   AND rather than OR. It will find all records except those that contain
  671.   value 1 or value 2. Using OR in this situation would select every
  672.   record.
  673.  
  674. ======= Search Operators ===============
  675.  
  676. Like
  677.   Matches fields that contain the search string anywhere within them. eg
  678.   "bit" would find "The Hobbit" and "Bitter Sweet".
  679.  
  680. Equal
  681.   Matches a field only if it exactly equals the search value. Case is not
  682.   significant so that dog will match Dog or even dOG.
  683.  
  684. Between
  685.   Matches a field with a value equal to or between the specified pair of
  686.   values. This can also be used to perform a less than or greater than
  687.   search. e.g. 'between 41 and 999' is the same as 'greater than  40'.
  688.  
  689. Sounds Like
  690.   Matches fields where the first word sounds like the search value. This
  691.   is really a bit of a gimmick as it is not very smart. NOTE it only looks
  692.   at the first word of the field.
  693.  
  694. Not Like
  695.   As for like but only matches records that do not contain the search
  696.   value.
  697.  
  698. Not Equal
  699.   As for equal but only matches records that do not match the search
  700.   value.
  701.  
  702. ====== EXPORT REQUESTER ======
  703.  
  704. A number of preset formats are provided or you can tailor your own record
  705. and field Separators by selecting the Custom format.
  706.  
  707. The headers button determines whether a header record containing the field
  708. names is to be included at the start of the file.
  709.  
  710. Pressing the OK Button displays a file requester for you to specify the
  711. name of the export file.
  712.  
  713. All records from the current index will be written. If you are displaying
  714. Selected records, only the selected records will be written.
  715.  
  716. ====== IMPORT REQUESTER ======
  717.  
  718. One preset format("...",) is provided or you can tailor your own by
  719. selecting Custom and choosing the Record and Field separators.
  720.  
  721. Both sequence and length can be different from that in the database. Also,
  722. not all database fields need to be present in the ASCII file. Any fields
  723. not present will be set to blank in your data base.
  724.  
  725. NB: It is vital that the sequence and number of fields you set in the
  726. selected fields box of the field selector correspond to the sequence of
  727. fields in the ASCII file you are importing.
  728.  
  729. Make you sure to backup your database before you import a file into an
  730. existing data base. If you get the format wrong, it is easier to restore
  731. than to fix or delete all of the incorrect records.
  732.  
  733. Also use plenty of buffers if you are going to import a large number of
  734. records.
  735.  
  736. ============ Preset Export/Import Formats =================
  737.  
  738. A number of preset formats are provided including the mailmerge formats for
  739. some wordprocessors:
  740.  
  741.  Custom
  742.    Allows you to define your own format using predefined Separator
  743.    characters.
  744.  
  745.  "...",
  746.    This is a quote and comma delimited text file such as used for data for
  747.    BASIC programs.
  748.  
  749. The following preset formats are available only for Export, not Import.
  750.  
  751.     Final Copy
  752.     Interword
  753.     KindWords 3
  754.     ProWrite
  755.     WordWorth
  756.  
  757. Only the KindWords 3 and Interword versions have been tested.
  758.  
  759. ====== Field and Record Separators ========
  760.  
  761. You can only select from the predefined delimiter codes.
  762.  
  763.   Field Start
  764.   The character that marks the start of a field.
  765.  
  766.   Field End
  767.   Marks the end of a field. It differs from the field separator in that a
  768.   separator does not appear after the last field in a record while a field
  769.   end character appears after every field.
  770.  
  771.   Field Separator
  772.   Separates fields in the record. It does not appear after the last field
  773.   in the record
  774.  
  775.   Record End
  776.   Marks the end of a record
  777.  
  778. If Field Start is used, a Field End must also be used. If neither Field End
  779. nor Field Separator is used, the records will be fixed length with each
  780. field padded to its maximum length with spaces.
  781.  
  782.  
  783. ============= PRINT REQUESTER =====================
  784.  
  785. Title
  786.   This is printed, centered, at the top of each page of your report.
  787.   Current date is printed at the left margin and the page number at the
  788.   right margin.
  789.  
  790.   The title line is only printed if you enter a Title. Note that even a
  791.   single space will print a blank title.
  792.  
  793. Left and Right Margins
  794.   Character position of left and right margin.
  795.  
  796. Lines/Page
  797.   This controls the number of lines QuickFile will use on each page. The
  798.   default is paper size minus 8 to provide a top and bottom margin.
  799.  
  800.   NB QuickFile issues a Form Feed when a new page is required. This
  801.   relies on your setting the page height on your printer correctly, and
  802.   may be a limitation with some printers. If you have a problem with this,
  803.   let me know and I will look at using the preferences paper size.
  804.  
  805.   A value of zero will suppress the report title and page breaks.
  806.  
  807. Print Pitch  Cycle Gadget.
  808.   As for Workbench printer preferences. Also shows the number of
  809.   characters per line for an 80 column printer using the selected pitch.
  810.  
  811. Lines Per Inch Cycle Gadget
  812.   This button toggles between 6 and 8 lines per inch.
  813.  
  814. Output To   Cycle Gadget
  815.   Allows you to send the report to the printer, window or a file. The file
  816.   will not include any printer escape codes.
  817.  
  818. The other objects displayed depend on whether you are printing a List or
  819. Form view.
  820.  
  821. FORM View
  822.  
  823.  A number of additional fields are displayed for controlling multiple
  824.  columns such as multi-column address labels. See Labels for full details.
  825.  
  826.  
  827. LIST View
  828.  
  829.   Group By List
  830.   This lists any report groups for this report. See Report Groups.
  831.  
  832.   Summary Only Check Box
  833.   If checked, only sub-total and total lines are printed. The "Group By"
  834.   field values are printed with the summary values for the group. Note
  835.   that an extra 4 characters are added at the start of each line for the
  836.   summary type (Cnt, Tot, etc). You must define a Report Group for this to
  837.   work. See the Address Book example database.
  838.  
  839.   Wrap Fields Check Box
  840.   If checked this will wrap fields over succeeding lines where the field
  841.   length is longer than the width defined for the view. The wrapping is
  842.   done on word boundaries if possible.
  843.  
  844. Press the OK button to start printing or the cancel button to cancel any
  845. changes you have entered.
  846.  
  847. Saving the view will save all of your report settings.
  848.  
  849. ========= Labels ============
  850.  
  851. Label printing is available for FORM type views only. You will normally
  852. define a special view and:
  853.  
  854.    Set Field Labels for the view to No
  855.  
  856.    Arrange the fields in the top left hand corner of the FORM screen to
  857.    match the desired label format
  858.  
  859.    Use the following fields in the print requester to control your label
  860.    format.
  861.  
  862. Labels Across
  863.   Number of labels to print across the page
  864.  
  865. Label Width
  866.   Width of each label. One additional space will be allowed
  867.   between labels. If you want to print labels further apart, increase this
  868.   value.
  869.  
  870. Labels Down
  871.   Number of labels to print down the page before starting a new column.
  872.   For example 3 across and 4 down will print in the following sequence:
  873.  
  874.       1      5      9
  875.       2      6     10
  876.       3      7     11
  877.       4      8     12
  878.  
  879. Label Height
  880.   Height of each label in lines. An additional blank line will be printed
  881.   between each label. The default is the number of lines in the form.
  882.  
  883. You will probably want to set Lines Per Page to zero to suppress page
  884. breaks as well.
  885.  
  886. If you are printing a single column of labels only, you can leave all of
  887. the above fields blank and let the number of lines in the form determine
  888. the label height.
  889.  
  890. ======== Report Groups ===================
  891.  
  892. You may know report groups as control breaks. A "group by" field is only
  893. printed when its value changes. You can also calculate summary values for
  894. each group. Each group can be based on several fields, although usually
  895. only one is used. Any number of fields may be summarised for a group.
  896.  
  897. Note that records must be sorted into the correct sequence for this to
  898. work correctly. They are not sorted automatically.
  899.  
  900. The types of groups available are
  901.  
  902. Report.  Gives a summary value for the whole report. If used, it must
  903.      be the first group in the list.
  904. Page.     Groups will start on a new page. Group fields will print
  905.      before column headings.
  906. Subtitle Prints the group fields on a separate line at the start of each
  907.      group. Reduces line length but best when each group contains
  908.      a good number of records.
  909. Normal     Field prints in the first line of the group only, but space
  910.      is used in each line.
  911.  
  912. You can have several levels of groups of the same type, but they must be
  913. listed from highest level to lowest.
  914.  
  915. ============= Report Group Example ============
  916.  
  917. The following example shows two groups with totals.
  918.  
  919.    Group 1 : City     Type: Normal   Group Fields: City
  920.                      Summaries:    Value (total)
  921.  
  922.    Group 2 : Salesman Type: Normal   Group Fields: Salesman
  923.                      Summaries:    Value (total)
  924.  
  925.    Resulting report:
  926.  
  927.     City    Salesman    Client             Value
  928.     ----------    -------------    --------------     ---------
  929.     Brisbane    Fred Smith    ABC Company       8000.00
  930.                 XYZ Limited       6400.00
  931.                 Zip Electronics   12000.00
  932.  
  933.     Salesman Tot                  26400.00
  934.  
  935.         John Brown    ZZZ Computers       5000.00
  936.                 GWZ Peripherals    7200.00
  937.  
  938.     Salesman Tot                  12200.00
  939.  
  940.     City Tot                      28600.00
  941.  
  942. Note: The file must be sorted over City and Salesman for this to print
  943. correctly.
  944.  
  945. ========== Report Group Requester ============
  946.  
  947. This defines the type, grouping fields, and summaries for a single report
  948. group.
  949.  
  950. Group string gadget
  951.   Names the group. This name is printed on summary lines.
  952.  
  953. Type
  954.   Type of group
  955.  
  956. View Fields list
  957.   Lists the fields available in the current view. The selected field in
  958.   this list can be added to either the Group Fields or Summaries lists.
  959.  
  960. Group Fields list
  961.   Lists the fields used for gouping. A new group starts when any of these
  962.   fields change. A group field is not required for a Report level group.
  963.  
  964. Summaries list
  965.   Lists the fields to be summarised for this group. Selecting an item from
  966.   this list will update the check boxes to show the summaries requested.
  967.   Use the INS button to add the selected view field to this list.
  968.  
  969. Tot, Cnt, Avg check boxes
  970.   Show the summaries required for the currently selected Summary field.
  971.   Any or all may be checked for one field.
  972.  
  973. OK and Cancel Buttons
  974.   Return to the Print Requester.
  975.  
  976. ============== DEFINING FILES  ===================
  977.  
  978. Use the Project/New menu item to define a new file.
  979.  
  980. Use the Project/Alter menu item to change the definition for the current
  981. file.
  982.  
  983. You can change just about everything in a file definition, except the
  984. block size, even after you have loaded data to the file. You can change
  985. field names, types and lengths. You can add or delete fields, and add or
  986. delete indexes. Caution should be used when changing the type for fields
  987. that contain data.
  988.  
  989. WARNING: Deleting a field makes its data inaccessible, even if you
  990.        re-add the same field. If you accidentally delete a field, reload
  991.        the definition without saving your changes and start your changes
  992.        again.
  993.  
  994. The fields defined for this file are listed in the box at the right of the
  995. window. Use the buttons beside the window to add, change or delete fields.
  996.  
  997. If a field is highlighted when you press add, the new field will be added
  998. before the selected field. To add a field to the end of the list, select
  999. the "== End ==" item.
  1000.  
  1001. The indexes (indices?) are listed in the box at the lower left. Use the
  1002. buttons to add, change or delete indexes.
  1003.  
  1004. ================ File Details =================
  1005.  
  1006. The file details are shown at the top left of the QFDefine window
  1007.  
  1008. Block Size
  1009.   QuickFile does not read and write single records at a time, but builds
  1010.   them into blocks. This reduces the number of disk reads and writes
  1011.   required. Around 2000 seems to give good results. The only way to change
  1012.   block size is to export the whole file, define a new data base and use
  1013.   import to recreate your file. Block size must be larger than the maximum
  1014.   record size plus free space, plus some space for control fields (2 bytes
  1015.   per field plus 2 bytes for the record length).
  1016.  
  1017. Free Space
  1018.   The amount of free space to be left in each block to allow for records
  1019.   to expand. As QuickFile only stores the actual data entered (not
  1020.   trailing blanks), additional space is required if a change makes a field
  1021.   longer. 100 seems to work OK. Records are moved to another block if
  1022.   necessary, so this is not critical.
  1023.  
  1024. Buffers
  1025.   Maximum number of buffers QuickFile will use for holding blocks of
  1026.   records in memory. Unless you have very large files or are short of
  1027.   memory, use a large figure such as 100.  QuickFile will never use more
  1028.   buffers than are required for the whole file.
  1029.  
  1030.   The more of the file in memory, the faster QuickFile works. The memory
  1031.   used is approximately (number of buffers * buffer size).
  1032.  
  1033.   WARNING. If you using a compression program like XFH-handler with
  1034.   QuickFile, set the number of buffers to 3. XFH will already have the
  1035.   decompressed copy of the file in ram.
  1036.  
  1037.  
  1038. Ext. Path
  1039.   This is a default path used for images and external files. The file name
  1040.   in each record is stored as a name relative to this path, which can
  1041.   reduce the number of characters in each record.
  1042.  
  1043.  
  1044. =========== Field Requester ===========
  1045.  
  1046. Name string gadget
  1047.   Enter a name of up to 12 characters for the field.
  1048.   Note that changing the field name does not change the field title in
  1049.   any existing views.
  1050.  
  1051. Length
  1052.   60 characters is a practical maximum length as no left and right
  1053.   scrolling is provided and more characters cannot be displayed.
  1054.   The maximum is 250. The minimum length of a date field is 11 characters.
  1055.  
  1056.   Space is used only for the number of characters entered in each record,
  1057.   not for the maximum field length. In fact, if a field is empty it takes
  1058.   up no space at all.
  1059.  
  1060. Decimals
  1061.   Number of decimals stored and displayed for the field. Values entered in
  1062.   the field will be rounded to this number of decimals.
  1063.  
  1064. Type  Push buttons
  1065.   Choose type of field. See below for the available types
  1066.  
  1067. Mandatory Check Box
  1068.   If checked, the field must have a value in all records. You will not be
  1069.   able to add a new record without a value in this field.
  1070.  
  1071. Justify Right Check Box
  1072.   If checked, the field is right justified. Integer, Float, and Caculated
  1073.   fields default to right, character and date fields default to left.
  1074.  
  1075. Expression String Gadget
  1076.   Contents depend on field type
  1077.  
  1078.     Calc:    The expression to calculate the field value
  1079.     Cycle:    The list of possible values
  1080.     External:    The command string to be run to process the field content.
  1081.  
  1082.   See field types for more detail.
  1083.  
  1084. =============== Field Types ===============
  1085.  
  1086. Character
  1087.   General character string.
  1088.  
  1089. Integer
  1090.   Whole number, no decimals.
  1091.  
  1092. Float.
  1093.   Real numbers with decimals.
  1094.  
  1095. Calculated
  1096.   The field value is calculated from other fields, which may themselves be
  1097.   calculated fields.
  1098.  
  1099.   Enter the calculation in the expression string gadget. The expression
  1100.   can contain field names, constants, and the add (+), subtract (-),
  1101.   multiply (*) and divide (/) operators. Field names containing spaces
  1102.   must be enclosed in double quotes ("). Normal precedence rules apply and
  1103.   brackets may be used to control sequence. Fields must be defined before
  1104.   they can be referenced.
  1105.  
  1106. Date
  1107.   These have a minimum length of 11 characters and are always entered as
  1108.   day/month/year.
  1109.  
  1110.   The separator can be any of /-. or a space. Month can be entered as a
  1111.   number or a three character name. Year can be entered as two or four
  1112.   digits. If two digits are used, a number greater than 50 is assumed to
  1113.   be this century, 50 or less, the next century.
  1114.   For example 03/08/93    3-8-93    3.aug.93  03 aug 1993 are all valid
  1115.  
  1116.   Dates are always displayed in the format 14-Apr-1993.
  1117.  
  1118. Cycle
  1119.   A list of values is associated with a cycle field. The value is
  1120.   maintained using a cycling button instead of a string gadget.
  1121.  
  1122.   Enter the list of values, separated by commas, in the expression string
  1123.   gadget. Any spaces you enter will be included in the value - you
  1124.   probably don't want leading spaces.
  1125.  
  1126.     for example  Blue,Green,Light Blue,Red
  1127.     instead of     Blue, Green, Light Blue, Red
  1128.  
  1129. Image
  1130.   An image that is displayed in the QuickFile window. Only the file name
  1131.   is stored in the database.
  1132.  
  1133. External
  1134.   Holds file names that can be run using an external program. This can be
  1135.   used for images, sounds, text files, animations or whatever. Enter the
  1136.   command template in the expression string gadget with %s to represent the
  1137.   file name. The full path name of the command is required. For example
  1138.  
  1139.     dh0:utilities/display %s
  1140.  
  1141.   At run time %s will be replaced with the contents of the field in the
  1142.   data base record
  1143.  
  1144.  ============== Indexes =============
  1145.  
  1146. You must define at least one index. If you are not sure pick any field
  1147. that will give a useful sequence, such as surname, title etc. Each index
  1148. can use a number of fields to give precise control of sequence.
  1149.  
  1150. You can have any number of indexes but you should limit yourself to those
  1151. you are going to use regularly.
  1152.  
  1153. You can index on any field type including calculated fields. You can also
  1154. define an index as unique to prevent duplicate records being created.
  1155.  
  1156. If you change an index on an existing file, it will be rebuilt when you
  1157. return to the main display panel.
  1158.  
  1159. Select the index from the list and press the appropriate button. The Index
  1160. Requester is used to define or alter an index definition.
  1161.  
  1162. Indexes are maintained automatically as you add, modify and delete records
  1163. on your file so they reduce the need for sorting and resorting.
  1164.  
  1165. ============ Define Index Requester =================
  1166.  
  1167. Name
  1168.   Identifies the index and is also used to form the index file name.
  1169.  
  1170. Unique CheckBox
  1171.   If checked, duplicate index entries will not be allowed.
  1172.  
  1173. Available Fields
  1174.   Lists fields defined in this file. Clicking on a field will add it to
  1175.   the fields selected for this index.
  1176.  
  1177. Index Fields
  1178.   Lists fields in the current index. The order of the fields in this box
  1179.   determines their priority in the sort. The first field is the primary
  1180.   key, the second will only be used for records where the first keys are
  1181.   equal and so on.
  1182.  
  1183.   Clicking on a field in this list will select it and display its name
  1184.   and length below the list box.
  1185.  
  1186.   If a field is highlighted, any new fields will be added before the
  1187.   highlighted field, otherwise new fields will be added at the end. To
  1188.   remove highlighting click in the blank part of the box.
  1189.  
  1190. Length
  1191.   Changing this length allows you to index on part of a long field. This
  1192.   reduces memory usage and may increase speed.
  1193.  
  1194.   IMPORTANT: YOU MUST PRESS ENTER OR RETURN AFTER CHANGING A LENGTH OR
  1195.          YOUR CHANGES WILL BE IGNORED
  1196.  
  1197. Order Buttons
  1198.   Select A..Z for ascending order or Z..A for descending order. You can
  1199.   mix these on different fields in the same index.
  1200.  
  1201. Delete
  1202.   Deletes the highlighted field from the Index Fields list.
  1203.  
  1204. ===== FILE NAMES =============
  1205.  
  1206.    QuickFile uses four types of file distinguished by extension. Changing
  1207.    these with an  editor will probably corrupt the file. YOU HAVE BEEN
  1208.    WARNED.
  1209.  
  1210.    The DEFINITION FILE has no extension. This is the name you enter when
  1211.    specifying a file name for QuickFile.
  1212.  
  1213.    The DATA FILE has an extension of .Data.
  1214.  
  1215.    VIEW files usually have an extension of .View
  1216.  
  1217.    INDEX FILES have an extension of .nameX where 'name' is the name of the
  1218.    index as specified in the file definition.
  1219.  
  1220. ========== POSSIBLE PROBLEMS =================
  1221.  
  1222. INDEX DOESN'T MATCH DATA FILE
  1223.  
  1224. It is possible for an index and data file to get out of synchronisation.
  1225. This can be caused by not closing a file properly, typically because of a
  1226. guru or power loss with a file open.
  1227.  
  1228. If you suspect an index has been corrupted in some way, you can delete the
  1229. index file (called filename.indnameX).  When you next open the file, the
  1230. index will be rebuilt.    This is indicated by a message such as "getblock:
  1231. Block not found" being displayed in the Console window.
  1232.  
  1233. You can also rebuild an index by selecting the Rebuild Index item from
  1234. the QuickFile tools menu.
  1235.  
  1236. IF YOU ARE SHORT OF MEMORY
  1237.  
  1238. Some tips for reducing memory requirements:
  1239.  
  1240.   Disable the online help. You can do this using the Configuration item
  1241.   on the Options menu
  1242.  
  1243.   Ensure the Memory Save checkbox is checked in the Config requester. This
  1244.   will reduce the memory used during sorts.
  1245.  
  1246.   Define only a single index. That is still one more than most programs
  1247.   allow.
  1248.  
  1249.   Hard drive users can reduce the number of buffers. This will also work
  1250.   with floppies but may be unacceptably slow.
  1251.  
  1252.   Disable ARexx using the Config menu item in the Options menu. This will
  1253.   prevent QuickFile opening rexxsyslib.library.
  1254.  
  1255.   If you are using a compression program such as XFH-handler, reduce the
  1256.   number of buffers in the file definition to 3. Otherwise both XFH and
  1257.   QuickFile will be holding the file in ram:
  1258.  
  1259. BUGS
  1260.  
  1261. The program has been reasonably tested, but only on my A500. Some bugs
  1262. refuse to show up until you hit exactly the right combination of
  1263. conditions, so please let me know of any problems you find. Known problems
  1264. (limitations really) are:
  1265.  
  1266. - If you drag a field off the bottom of the window, the drag box is drawn
  1267.   over the border but is not erased properly if you release the mouse
  1268.   button.
  1269.  
  1270. - Date and character fields cannot be used in calculations but you can
  1271.   enter them into expressions.
  1272.  
  1273. - A Field is clipped horizontally, but not vertically, if it does not fit
  1274.   completely in the visible window. This causes images to disappear instead
  1275.   of being clipped if you make the window too small.
  1276.  
  1277. - No attempt is made to remap image palettes. You may get odd colours or
  1278.   a block of a single colour.
  1279.  
  1280. - Switching views from an ARexx macro can cause a series of window redraws
  1281.   to occur after the macro has completed. This is because switching views
  1282.   can cause window resize messages to be sent by Intuition and these are
  1283.   not seen by QuickFile until the macro completes.
  1284.  
  1285. - Disk thrashing can occur on startup if the file contains images because
  1286.   QuickFile is trying to load an image while AmigaGuide is scanning the
  1287.   QuickFile.guide file.
  1288.  
  1289. If you write to me with a problem you would like fixed, it is much easier
  1290. for me if you send a copy of your database, the version of the program you
  1291. are using, and instructions on how to duplicate the problem.
  1292.  
  1293. ========== Program Limits ==============
  1294.  
  1295. Field Length
  1296.  
  1297.     While up to 250 characters are allowed per field, this is not very
  1298.     useful as each field is limited to one line.
  1299.  
  1300. Number of Records per File
  1301.  
  1302.     The theoretical limit is currently 65,535. In practice it is much
  1303.     lower because of the indexing technique which will run out of either
  1304.     memory or processor speed. Each index requires a contiguous area of
  1305.     RAM 4(n + 200) bytes in size, where n is the number of records in the
  1306.     file. The sort technique also limits the size of the file.    The sort
  1307.     loads all sort keys to ram and also requires 8 bytes per record in one
  1308.     contiguous area.
  1309.  
  1310.     A realistic maximum is probably in the order of 10,000 to 20,000.
  1311.  
  1312. Number of fields per record
  1313.  
  1314.   250. But I got bored at about 60, so you take your chances if you want
  1315.   to try more.
  1316.  
  1317. Number of indexes
  1318.  
  1319.   No limit.
  1320.  
  1321.