home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / qdrsum.zip / CATEGORY.DOC next >
Text File  |  1987-10-04  |  3KB  |  65 lines

  1.                        CATEGORY# FIELD SPECIAL TREATMENT                       
  2.  
  3.  
  4.      If the user does not specify the option /C, special treatment is given to 
  5. a  field  named  CATEGORY#.    There  may  be entries on the data entry screen 
  6. following a line of space separated asterisks ("| * * ") which give a category 
  7. number followed by a dash and a description ending with a semicolon.   Two per 
  8. line are allowed,  separated by a vertical line (│,  produced by the keystroke 
  9. Alt-179).
  10.  
  11.      The  following  is  an  example of the type of .HDR file described above, 
  12. from Dean Ammon's BOOKINV templates.  Only a few categories are shown,  but up 
  13. to  30 categories can be specified.   I have omitted some lines in the header, 
  14. and shortened the right hand columns to fit in the document:
  15.  
  16. AUTHOR
  17. 40,3,9
  18. CATEGORY#   :09:
  19. 2,3,64
  20. TITLE
  21. 60,4,8
  22. CR_DATE     :09:
  23. 4,5,75
  24. COMMENTS_1  ta-entry screen  21:80
  25. 65,6,13
  26. COMMENTS_2
  27. 65,7,13
  28. |AUTHOR                                          CATEGORY#                   |
  29. |TITLE                                                                       |
  30. |COVER     COST          LOCATION                     ON_LOAN     CR_DATE    |
  31. |COMMENTS_1                                                                  |
  32. |COMMENTS_2                                                                  |
  33. | * * * * * * * * * * * * * * * * *  CATEGORIES  * * * * * * * * * * * * * * |
  34. |   01 - COOKBOOKS;                      │  16 - HISTORY;                    |
  35. |   02 - CHILDRENS;                      │  17 - DO IT YOURSELF/SKILLS;      |
  36. |   03 - CRAFT/HOBBY/DECORATING;         │  18 - ART;                        |
  37. |   04 - FARM/PETS/DO IT YOURSELF;       │  19 - SCIENCE FANTASY;            |
  38.  
  39.      With the above .HDR file, and a call line not specifying /C, wherever one 
  40. would normally expect to see CATEGORY#=nn, where nn is some value, QDRSUM will 
  41. print CATEGORY=description, where description is the string of characters fol- 
  42. lowing the hyphen and preceding the semicolon for nn.   If nn cannot be found, 
  43. or if the description is blank, then CATEGORY#=nn would still be printed.  For 
  44. example, the following call
  45.  
  46.      QDRSUM BOOKS CAT
  47.  
  48.  
  49. could produce the printout below:
  50.  
  51.                            Report for database BOOKS
  52.  
  53. 14 records have CATEGORY=CRAFT/HOBBY/DECORATING
  54.  4 records have CATEGORY=07
  55.  1 record  has  CATEGORY=HISTORY
  56.  1 record  has  CATEGORY=DO IT YOURSELF/SKILLS
  57. 77 records have CATEGORY=SCIENCE FANTASY
  58. ========================================================
  59.  
  60. There are a total of 97 matching records in the database
  61.  
  62. Note the result for the four records with CATEGORY# equal to 07.  Since 07 did 
  63. not appear in the BOOKS.HDR file, no translation could be performed.
  64.                                                                                
  65.