Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!ubc-vision!alberta!calgary!freedman From: freedman@calgary.UUCP (Dan Freedman) Newsgroups: comp.sys.mac Subject: Re: Hypercard question Message-ID: <1098@vaxb.calgary.UUCP> Date: Tue, 6-Oct-87 16:39:00 EDT Article-I.D.: vaxb.1098 Posted: Tue Oct 6 16:39:00 1987 Date-Received: Sun, 11-Oct-87 00:42:26 EDT References: <29942@sun.uucp> <774@sdcc18.ucsd.EDU> Organization: U. of Calgary, Calgary, Ab. Lines: 30 In article <774@sdcc18.ucsd.EDU>, cs162fed@sdcc18.ucsd.EDU (Grobbins) writes: > I'm trying to go to cards by a name composed of a string constant > and a variable number, as in > go to card "Sheetnum"&snum -- and variants, incl. putting "x"&y in parens > but Hypercard usually fails to go to the proper, or any, card. > This occurs only (or primarily) in scripts; if I execute the same > line in the message window, Hypercard takes me to the proper card > without complaining. Hmm, I went to the home stack, and tried the following: CMD-2 (to get away from the home card) put "e" into f go to card "hom"&f from the message box. It did not work. I then tried: go to card "hom" & e (note the spacing). It worked. I then made a button in the card before the home card and put the following into the script: on mouseUp put "e" into f go to card "hom" & f end mouseUp and tried the button. It worked perfectly. Could it be that you are having problems because of the way you are spacing your arguments? What do you mean when you say that HyperCard "usually" fails? I tried my button 5 or 6 times, and it worked each time. Dan Freedman University of Calgary Computer Science Department