Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!rsoft!mindlink!a323 From: Rob_McMurtry@mindlink.UUCP (Rob McMurtry) Newsgroups: comp.sys.mac.hypercard Subject: Re: names of buttons Message-ID: <4812@mindlink.UUCP> Date: 15 Feb 91 00:03:13 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 15 HyperCard provides each object with two discrete methods of id, the object id i.e.: cd btn id 2, and the object #, i.e.: Cd btn number 2. You _never_ reference an object by it's number, as this changes with the addition and/or subtraction of objects. Although using names can be very useful, the best way to reference objects is by their Id's, as these are always dissimilar to those of other objects. Naming an object with a numeric will cause problems. Whether this is a "problem" or not depends on your perspective, but it's not unusual. A practical way to name buttons and fields is to use the same name on both. If you want a button named "info" to show a field named "info" you'd do it like this: on mouseUp show cd fld the short name of me end mouseUp This can help avoid confusion, as the name of any object is always up at the top left of the script editor.