home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!uvaarpa!vdoe386!tjhsst!bbooz
- From: bbooz@tjhsst.vak12ed.edu (William Booz (Bill))
- Subject: Creating Two Indices
- Message-ID: <1992Nov23.153753.2226@tjhsst.vak12ed.edu>
- Organization: Virginia's Public Education Network (Fairfax)
- Date: Mon, 23 Nov 92 15:37:53 GMT
- Lines: 27
-
- I am creating a data base stack of books an authors. Each card
- will contain author's name and title of book. There may be
- several cards with the same author name, but the book title
- will, obviously, be unique on each card. I have successfully
- created an index for the titles by scanning through the cards
- and putting the title field into a variable, setting the name
- of the card to the title of the book and then placing the
- variable into an index field on a separate card/background. How
- can I easily create another index of the authors and make my
- field script go to the selected work? My band-aid solution is
- to read the author name, a colon & space, title of book and
- short card id into variable which in turn is placed into index
- field for authors. The index field script can then pick up the
- cd id # as "last word" of the chosen line and go to that card.
- I don't like having that number visible to the user, however.
- In addition, I have thought that it would be ni not to repeat
- an author's name when there are several books by one author,
- but rather to have the index field recognize that there is more
- than one card with a book by the selected author and display
- (perhaps an otherwise hidden field...???) the list availab. A
- click on this field would take the user to the desired card.
- Any thoughts and/or suggestions?
-
- --
- _______________ __o Bill Booz, Fairfax, VA
- _________________ -\<, bbooz@tjhsst.vak12ed.edu
- ......O/ O Biking Is Fun!!
-