Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!oliveb!felix!john From: john@felix.UUCP (John Gilbert) Newsgroups: comp.sys.mac.hypercard Subject: Re: "Repeat with...." question Message-ID: <23775@felix.UUCP> Date: 2 Mar 88 00:44:25 GMT References: <8232@eleazar.Dartmouth.EDU> <461@stech.UUCP> Sender: daemon@felix.UUCP Reply-To: john@felix.UUCP (John Gilbert) Organization: FileNet Corp., Costa Mesa, CA Lines: 39 >> >> 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 >> > >Sometimes you have to put a quantity into a container all of its own to use >it in a repeat statement. Try something like: > >put the number of cards of this background into NumbCards >repeat with NumbCards ... > > >end repeat > Several folks have pointed out that "the number of cards in this background" may not be supported yet. I have not confirmed this, and it may very well be true. However, there is a more basic problem in the original example not yet mentioned: The "repeat with..." is to be used with a varible counter the same way a for loop is traditionally used. It might help to change the repeat loop to: repeat for end repeat to see if this produces the desired results. John Gilbert -- John Gilbert !trwrb!felix!john