Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!ames!ll-xn!mit-eddie!bu-cs!dartvax!eleazar.dartmouth.edu!boz From: boz@eleazar.dartmouth.edu (John Boswell) Newsgroups: comp.sys.mac.hypercard Subject: "set name of target" problem Message-ID: <8724@dartvax.Dartmouth.EDU> Date: 31 May 88 04:49:03 GMT Sender: news@dartvax.Dartmouth.EDU Reply-To: boz@eleazar.dartmouth.edu (John Boswell) Distribution: comp.sys.mac.hypercard, comp.sys.mac Organization: Dartmouth College, Hanover, NH Lines: 33 Hi: I've been trying to get the "popup menus" demonstration from the latest MacTutor to work. Everything works fine, with the following exception: set editbkgnd to true domenu "New Field" set name of bkgnd field "New Field" to theName This doesn't work, since unlike "New Button", there is no default name for a "New Field". Thus I have to put the following line after domenu: set the name of the target to "New Field" but this doesn't work as expected!!! It seems that what is returned for "target" is the CARD id!!! If I do: get the target put it after domenu, i get "card id 3276" or whatever in the msg box!!! What gives??? HOW do I set the name of this bkgnd field to "New Field" so the rest of this script will work??? ANY help will be *greatly* appreciated!! Thanks, John Boswell Dept. of Chemistry Dartmouth College boz@eleazar.dartmouth.edu