Path: utzoo!attcan!uunet!lll-winken!ames!oliveb!apple!bbn!bbn.com!mesard From: mesard@bbn.com (Wayne Mesard) Newsgroups: comp.sys.mac.hypercard Subject: Re: Button Name Message-ID: <39723@bbn.COM> Date: 10 May 89 14:06:38 GMT References: <6035@brunix.UUCP> Sender: news@bbn.COM Reply-To: mesard@BBN.COM (Wayne Mesard) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 28 In article <6035@brunix.UUCP> cs004004@cslab9d.UUCP (Jon Feinberg) writes: >I am simply trying to have a button modify its own name like so: > >on mouseUp > if name of me is "ShowIt" then > set name of me to "HideIt" > else > set name of me to "ShowIt" > end if >end mouseUp >Furthermore, if I have the button start out named "HideIt," the first >mouseUp sent to it will indeed change the name to "ShowIt," but >subsequent presses are utterly ineffectual. The conditional line should read: if short name of me is "ShowIt" then ^^^^^ When a script isn't behaving as expected, and you're dealing with a function result, put it into the message box to make sure it's really returning what you you think it should (i.e. "put the name of me"). -- void *Wayne_Mesard(); "Save Money! Use your new BayBank Visa or MasterCard to Mesard@BBN.COM pay off your other bank credit cards that charge higher BBN, Cambridge, MA interest rates." -Lies my junk mail told me.