home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / hypercar / 3361 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.3 KB  |  57 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!mcsun!sun4nl!rulway.LeidenUniv.nl!rulfsw!buurt1
  3. From: buurt1@rulfsw.leidenuniv.nl (Jasper Kips)
  4. Subject: Re: Finding field with index
  5. Message-ID: <1992Sep4.112449.1@rulfsw.leidenuniv.nl>
  6. Lines: 44
  7. Sender: news@rulway.LeidenUniv.nl (Usenet news account)
  8. Nntp-Posting-Host: rulfsw
  9. Organization: Leiden University Faculty of Social Sciences
  10. References: <1992Aug31.060028.18430@newsman.csu.murdoch.edu.au> <1992Aug31.221414.26797@pellns.alleg.edu>
  11. Date: 4 Sep 92 11:24:49 +0100
  12.  
  13. In article <1992Aug31.221414.26797@pellns.alleg.edu>,
  14. dblackbu@carr11.alleg.edu (David Blackburn) writes: 
  15. > In article <1992Aug31.060028.18430@newsman.csu.murdoch.edu.au> murdoch,  
  16. > WA, Australia (kywong@csuvax1.murdoch.edu.au(Khoon Yoong Wong)) writes:
  17. >> I have a problem and need help. My stack has an index card with a locked  
  18. > field
  19. >> that contains the names of all the cards. The user clicks on a name and  
  20. > it
  21. >> takes the user to the card requested. My script says:
  22. >> 
  23. >> on mouseUp
  24. >>   select the clickLine
  25. >>   find the value of the clickLine in bg field "cardName"
  26. >> end mouseUp
  27. >> 
  28. >> The problem is this: I have two cards called Hypertext on Scrolling  
  29. > Field and
  30. >>  Scrolling Field separated by many cards in between. 
  31. >> when I click on the second one, it always take me to the first one.
  32. >> This happens with all the cards that share a common part.
  33. >> What can I do to solve this?
  34. >> Many thanks.
  35. [For bandwith sake reply deleted, but it works fine....]
  36. > Dave Blackburn, dblackbu@alleg.edu
  37.  
  38. Well, IF and only IF the cards are in the same order in the index field 
  39. as they are in the stack then the following handler is amazingly quick 
  40. (on my SE it takes about 3 secs to go to the card as opposed to 
  41. sometines 60 or 80 secs; OK I Really shoudn't try to get some 500 cards 
  42. in one stack) but here goes (Oops I Alomost forgot the script asuumes 
  43. that the index card is on a DIFFERENT bg than the cards you're looking 
  44. for and that the cards you're looking for are ALL in one bg)
  45.  
  46. on mouseup
  47.   visual effect dissolve to black
  48.   visual effect dissolve to card
  49.   go card (item 2 if the clickline) in bg "Data Cards"
  50. end mouseup
  51.  
  52. (BTW I'm Typing this from the top of my head (which sits quite 
  53. uncomfortably thank you) but I'm sure it is something like the above 
  54. script)
  55.  
  56. Success Jasper
  57.