Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!arc!steve From: steve@arc.UUCP (Steve Savitzky) Newsgroups: comp.sys.mac.hypercard Subject: Re: indexes in hypercard Message-ID: <469@arc.UUCP> Date: 18 Jul 89 20:45:06 GMT References: <514@extro.ucc.su.oz> Reply-To: steve@arc.UUCP (Steve Savitzky) Organization: Advansoft Research Corp, Santa Clara, CA Lines: 29 In article <514@extro.ucc.su.oz> awl@extro.ucc.su.oz (Tony Locke) writes: >Using the "link to" feature you can do a reasonable job >of linking related records together (in true "goto" fashion) but any >adding or deleting cards screws any indexing around. Anyone know >I can do this ? The cleanest thing I can think of is to add 26 dummy cards with one-letter entries A, B, ... in all of the fields you're likely to sort on. Link the index buttons to those. Put "index tab" graphics on the card layer to hide the kludgery. (Hmm... think I'll put this in MY address stack!) Better than linking: give the cards 1-letter NAMES, and give the index buttons the same names. Then you can use the trivial script: on mouseUp go card the short name of the target end mouseUp in each button. Disclaimer: my macintoy's at home, so all code in this post is untested. (I *never* assume HyperCard is going to behave the way I think it ought to.) -- Steve Savitzky | steve@arc.uucp | apple.com!arc!steve ADVANsoft Research Corp. | (408) 727-3357(w) / 294-6492(h) 4301 Great America Parkway | #include Santa Clara, CA 95054 | May the Source be with you!