Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!texsun!pollux!ti-csl!m2!martin From: martin@m2.csc.ti.com (Steven Martin) Newsgroups: comp.sys.mac.hypercard Subject: Re: Button Name Message-ID: <77317@ti-csl.csc.ti.com> Date: 10 May 89 22:01:27 GMT References: <6035@brunix.UUCP> Sender: news@ti-csl.csc.ti.com Reply-To: martin@m2.UUCP (Steven Martin) Organization: TI Computer Science Center, Dallas Lines: 25 In article <6035@brunix.UUCP> cs004004@cslab9d.UUCP (Jon Feinberg) writes: >I am having a rather frustrating problem... the solution is probably >obvious, so please enlighten me. >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 This is a common problem. It got me for a while too. the name of me --> 'cd button "ShowIt"' (or whatever) what you need is "the short name of me" which just returns '"Showit"' That should do it. Steve Martin USENET: {ctvax,im4u,texsun,rice}!ti-csl!martin ARPANET: SMARTIN@CSC.TI.COM COMPUSERVE: 72727,1471 GENIE: S.MARTIN8 PHONE: (214)-995-0698, 404-1061 What I am is what I am, are you what you are or what?