Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!batcomputer!beloin From: beloin@batcomputer.tn.cornell.edu (Ron Beloin) Newsgroups: comp.sys.mac.hypercard Subject: Re: Copying contents of stacks Message-ID: <4003@batcomputer.tn.cornell.edu> Date: 10 Mar 88 16:00:51 GMT References: <1080@PT.CS.CMU.EDU> Reply-To: beloin@tcgould.tn.cornell.edu (Ron Beloin) Organization: Ecosystems Research Center, Cornell University, Ithaca NY Lines: 27 Keywords: copy, stacks, fields, script In article <1080@PT.CS.CMU.EDU> ns@CAT.CMU.EDU (Nicholas Spies) writes: > put the number of cards into numCards > repeat with i = 1 to numCards > go card i of stack "sourceStack" > put field "f1" into f1contents > -- and so on > go stack "destination" -- has one card to begin with, with fields, etc > if i > the number of cards then > doMenu "New Card" now, the new card is card number 2, since you started on card 1... > end if > > go card i this takes you to the last card, not the new one... and this overwrites previous data... So it had nothing to do with compacting the stack. I couldn't see what was wrong until I played with it a bit. You can skip the if statement above and just make a new card and stuff away.. ron Ron Beloin, Ecosystems Research Center, Corson Hall, Cornell, Ithaca,NY 14853 >> opinions << BITNET:BELOIN@CRNLTHRY; INTERNET:beloin@tcgould.tn.cornell.edu >> are mine << UUCP:{cmcl2,shasta,uw-beaver,rochester}!cornell!tcgould!beloin