Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!siemens!pollux!fwb From: fwb@pollux.tmc.edu (Fred Brehm) Newsgroups: comp.sys.mac.hypercard Subject: Re: An easy HyperTalk question Message-ID: <62459@siemens.siemens.com> Date: 4 Jun 91 13:56:33 GMT References: <1991Jun3.165716.17483@spectra.com> <16555@darkstar.ucsc.edu> Sender: news@siemens.siemens.com Organization: Siemens Corporate Research Lines: 23 Someone@spectra.com (I lost the attribution) asks why this does not work: > repeat with cardNo = 1 to 10 > put id of card cardNo of bg "Background" into thisCard > get field 1 of thisCard Eric Goodman asks suggests changing it to: > repeat with cardNo = 1 to 10 > put NUMBER of card cardNo of bg "Background" into thisCard > get field 1 of thisCard An alternative way is: repeat with cardNo = 1 to 10 put SHORT id of card cardNo of bg "Background" into thisCard -- SHORT might not be necessary, but I always code it this way. get field 1 of CARD ID thisCard I think that accessing the card by ID is the fastest way to get to it, but the other way will work, too. Fred -- Frederic W. Brehm Siemens Corporate Research Princeton, NJ fwb@demon.siemens.com -or- ...!princeton!siemens!demon!fwb