Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!mit-eddie!uw-beaver!Teknowledge.COM!unix!mxmora From: mxmora@unix.SRI.COM (Matt Mora) Newsgroups: comp.sys.mac.hypercard Subject: Re: Using a card name/id in a variable Keywords: field,variable,backround Message-ID: <12607@unix.SRI.COM> Date: 30 May 90 16:03:30 GMT References: <3015@unisoft.UUCP> Reply-To: mxmora@unix.UUCP (Matt Mora) Organization: SRI International, Menlo Park, CA Lines: 38 In article <3015@unisoft.UUCP> cander@unisoft.UUCP (Charles Anderson) writes: [stuff deleted] >I played around with stuff in the message box and found that the >problem has something to do with having the card id in a variable. The >following is a example of the problem: > > put field "foo" of card id 1234 -- works > > put "card id 1234" into bar > put field "foo" of bar -- fails Have you tried : put "card id 1234 of background id 5678" into bar >So my question is, is there some simple, faster way to make this work without >using my silly function? Try using the above message. I think ids are relative to their background. >Charles. >{sun, ucbvax, pyramid, uunet}!unisoft!cander -- ___________________________________________________________ Matthew Mora SRI International mxmora@unix.sri.com ___________________________________________________________