Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!udel!princeton!phoenix!bskendig From: bskendig@phoenix.Princeton.EDU (Brian Kendig) Newsgroups: comp.sys.mac.hypercard Subject: Re: Preventing menubar and message box hiding Message-ID: <13059@phoenix.Princeton.EDU> Date: 18 Jan 90 18:30:39 GMT References: <1990Jan4.200726.6221@smsc.sony.com> <1472@cantuar.UUCP> Reply-To: bskendig@phoenix.Princeton.EDU (Brian Kendig) Organization: Systems Engineering, NASA Space Station Freedom Project Lines: 44 In article <1472@cantuar.UUCP> sinton@cantuar.UUCP (Robert J.P. Sinton) writes: > A while back I tried (just for fun) this card script: >on add arg1,arg2,arg3 > answer arg1 && "/" && arg2 && "/" && arg3 >end add > In the message box I typed: >put 1 into temp > and then: >add 1 to temp > Imagine my surprise when it worked! the answer dialog gave: >1 / to / > > I tried for ages to do something like adding 1 to arg1 so that >"add 1 to temp" when temp was 1 would result in temp having the value 3. >Unfortunately, the third argument is trapped as the string "", >rather than a useable reference to the actual container, so the message >lost its meaning through being intercepted. Very frustrating, it made me >feel that the ability to alter mathematical logic was just beyond my reach :-) First of all, having the command `add 1 to arg1' in your `on add' handler would result in an infinite recursion... ;) I've come across that problem before. Seems to me that I once tried to trap the `go' command and take special action for specific destinations, but no matter what I typed after `go', my handler would always receive the message go to which doesn't help much at all unless I really did type `go to ' (which I didn't). What's the deal here? Why isn't my card receiveing the same thing that the system must be (or else I couldn't `go' anywhere!)? I can't seem to replicate the problem right now, but I remember working around it clumsily way back when. << Brian >> -- | Brian S. Kendig \ Macintosh | Engineering, | bskendig | | Computer Engineering |\ Thought | USS Enterprise | @phoenix.Princeton.EDU | Princeton University |_\ Police | -= NCC-1701-D =- | @PUCC.BITNET | | Systems Engineering, NASA Space Station Freedom / General Electric WP3 |