Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!unisoft!cander From: cander@unisoft.UUCP (Charles Anderson) Newsgroups: comp.sys.mac.hypercard Subject: Using a card name/id in a variable Keywords: field,variable,backround Message-ID: <3015@unisoft.UUCP> Date: 29 May 90 20:46:51 GMT Lines: 36 I'm working on a heterogeneous stack with about half a dozen different backrounds. I have a couple of handlers and functions that store card names/ids in local variables and then extract fields from the specified card. This seems to work so long as the current card is of the same backround type as the card in the local variable. When the backround type is different, I get error messages about unknown field in backround type . 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 If I go to the card everything works fine, so I have written a function that looks something like: function getField fldName cardName push card go to cardName get field fldName pop card return it end getField So my question is, is there some simple, faster way to make this work without using my silly function? -- Charles. {sun, ucbvax, pyramid, uunet}!unisoft!cander