Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Using a card name/id in a variable Keywords: field,variable,backround Message-ID: <41482@apple.Apple.COM> Date: 31 May 90 04:33:06 GMT References: <3015@unisoft.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 31 In article <3015@unisoft.UUCP> cander@unisoft.UUCP (Charles Anderson) writes: [trying to get information from a card specified by ID] > put field "foo" of card id 1234 -- works > > put "card id 1234" into bar > put field "foo" of bar -- fails > >If I go to the card everything works fine, so I have written a function >that looks something like: [function deleted] This is Yet Another Parser Subtlety (doesn't look like a bug, offhand). There are a couple of easy ways to work around: - put just the ID into the variable. You would use put the short ID of this card into bar -- do some stuff put field "foo" of card ID bar - use the ever-useful "do": put "card id 1234" into bar do "put field" && quote & "foo" & quote && "of" && bar -- ========= jeanne a. e. devoto ======================================== jdevoto@apple.com | You may not distribute this article under a jdevoto@well.sf.ca.us | compilation copyright without my permission. ______________________________________________________________________ Apple Computer and I are not authorized | CI$: 72411,165 to speak for each other. | AppleLink: SQA.TEST