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