Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!njin!princeton!phoenix!englandr From: englandr@phoenix.Princeton.EDU (Scott Englander) Newsgroups: comp.sys.mac.hypercard Subject: Re: Hypercard questions + suggestions Message-ID: <7623@phoenix.Princeton.EDU> Date: 7 Apr 89 18:13:43 GMT References: <20013@uflorida.cis.ufl.EDU> Reply-To: englandr@phoenix.Princeton.EDU (Scott Englander) Distribution: usa Organization: Princeton University, NJ Lines: 35 In article <20013@uflorida.cis.ufl.EDU> pff@beach.cis.ufl.edu (Pablo Fernicola) writes: >3- If a have a variable Var and it contains mem1 and mem2, given by > put "mem1,mem2" into Var The above statement will put the literal string in quotes into the Var. But you don't need to do this to reserve space. >how can I do the following, > "put the value of item 1 of Var into the value of item 2 of Var" > >so if mem1 had "hello" to start with and mem2 was empty, after doing the >line above, mem2 would contain "hello". I tried placing mem2 in target, but >it didn't work. I also tried "put item 2 of Var into the target" and it One way is: put item 1 of var into item 2 of var Even if item 2 didn't exist before, it will now, and if item one was 999, var will now look like 999,999 >1- User definable events, ie. > >on myEvent > do stuff > pass myEvent >end myEvent > This is already a feature. Try it by putting this handler into your background script and then "send myEvent to [whatever]", where [whatever] is some object below the background in the hierarchy (like the card or a button). Or you could just "send myEvent to background 1". -- - Scott