Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!agate!darkstar!ucschu.ucsc.edu!ericg From: ericg@ucschu.ucsc.edu (Eric Goodman) Newsgroups: comp.sys.mac.hypercard Subject: Re: An easy HyperTalk question Message-ID: <16555@darkstar.ucsc.edu> Date: 3 Jun 91 23:05:10 GMT Article-I.D.: darkstar.16555 References: <1991Jun3.165716.17483@spectra.com> Sender: usenet@darkstar.ucsc.edu Organization: UC Santa Cruz Lines: 35 > repeat with cardNo = 1 to 10 > get field 1 of card cardNo of bg "Background" In this code you are talking about the NUMBER of the card > repeat with cardNo = 1 to 10 > put id of card cardNo of bg "Background" into thisCard > get field 1 of thisCard here you are using the ID of the card. Hypercard distinguishes between the ID and the NUMBER. The number of a card is simply where it is compared to the first card of the stack. As you add and delete cards, the number of each card changes. The ID of a card is a unique number that never changes no matter how other parts of the stack are modified. In general, the ID is a 4 to 5 digit number, so 1 to 10 probably don't even exist in your stack (I don't know why this is so). Generally you use the number of the card to go through a list of cards, and the ID to pick out a specific card. To get your example to work, use: repeat with cardNo = 1 to 10 put NUMBER of card cardNo of bg "Background" into thisCard get field 1 of thisCard The caps in number are for emphasis only. Happy scripting. Eric Goodman, UC Santa Cruz ericg@ucschu.ucsc.edu or @ucschu.bitnet Eric_Goodman.staff@macmail.ucsc.edu