Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!decwrl!decvax!dartvax!eleazar!boz From: boz@eleazar.Dartmouth.EDU (John Boswell) Newsgroups: comp.sys.mac.hypercard Subject: "Repeat with...." question Message-ID: <8232@eleazar.Dartmouth.EDU> Date: 23 Feb 88 15:04:52 GMT Reply-To: boz@eleazar.Dartmouth.EDU (John Boswell) Organization: Dartmouth College, Hanover, NH Lines: 34 Keywords: repeat, bug Hi. I am a little stumped, so I figured I'd ask the net... I wrote a nifty (I think 8-) ) stack for keeping track of my music col- lection and one to keep track of my library. One of the buttons in each stack looks at all the cards and determines which items at any particular time are out on loan to someone. This can be useful if I need to "recall" a book or cd, or whatever, or to remind someone to return something they borrowed 6 monthsago.. My problem is that the button contains the following script: (in part) repeat with the number of cards of this bkgnd ...do the checking end repeat Problem is, this doesn't work, and HC chokes on the "of this bkgnd". For my music stack this isn't a major problem... I only have one bkgnd, so I just took out the "of this bkgnd" part of the button script. that works fine. However, I have TWO backgrounds in my library stack... taking out the "of this bkgnd" results in the button repeating for the number of cards in the ENTIRE stack! Needless to say, this results in say, a single item on loan being "found" and reported too many times! I tried changing to "with this bkgnd" or "in" or etc., ad nauseum, to no avail. Can anybody tell me how to only repeat for the number of cards in a single background??? Alternately, how do I determine the "number of cards in bkgnd "X" "??? thanks for any info... John Boswell Department of Chemistry Dartmouth College Hanover, Nude Hampster 03755 Department of Chemistry boz@eleazar.dartmouth.edu