Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!bellcore-2!bellcore!pyuxp!pyuxe!nvuxr!ccw From: ccw@nvuxr.UUCP (christopher wood) Newsgroups: comp.sys.mac.hypercard Subject: Re: Repeat only for certain background Keywords: repeat Message-ID: <1824@nvuxr.UUCP> Date: 23 Aug 90 19:43:34 GMT References: <11601@odin.corp.sgi.com> Reply-To: ccw@nvuxr.UUCP (22456-christopher wood) Organization: Bell Communications Research, NJ Lines: 33 In article <11601@odin.corp.sgi.com> pbroenen@spanky.corp.sgi.com (Paul Broenen) writes: >HyperGods, Please, I'm just a tinkerer... >I'm moderately familiar with HyperCard, but I haven't yet figured out >how to handle this problem: I want to loop through only those cards >in my stack which are of a particular background type. (For aesthetic >reasons, I want to leave the screen unlocked so the cards will page by >during the loop.) I have a Main card, Help card, etc. which I don't >want in the loop. >Is there a clean, non-cludge way of formatting my "repeat" statement >so that it loops through only one kind of background? >Thanks! >Paul How about Repeat for count = 1 to number of cards of bg "xyz" go next card of bg "xyz" end repeat I usually think of these things, type them into unix, and then test them (multifinder is wonderful!) Change the "for" above to "with", and it'll work. -- Chris Wood Bellcore ...!bellcore!nvuxr!ccw or ccw@nvuxr.cc.bellcore.com