Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!blkcat!f421.n109.z1.fidonet.org!Ken.Knight From: Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) Newsgroups: comp.sys.mac.hypercard Subject: (R)Command line works in message box but not in script. Message-ID: <3582.27C35476@blkcat.fidonet.org> Date: 20 Feb 91 22:02:34 GMT Sender: ufgate@blkcat.fidonet.org (newsout1.26) Organization: FidoNet node 1:109/421 - The Twilight Clone, Paul Heller Lines: 41 >From: ac2@doc.ic.ac.uk (A Chee) >Date: 19 Feb 91 14:42:37 GMT >Organization: Dept. of Computing, Imperial College, London, UK. >Message-ID: <2915@gould.doc.ic.ac.uk> >Newsgroups: comp.sys.mac.hypercard > >Hi, > I'm doing a project in HyperCard version 1.2 using HyperTalk. I >used a > variable to read the name of a card. However when I use this >variable >name > in the command " go to variablename " where variablename is card " > cardname", the system does not understand the command and complains >about > it? The Hypercard system complains that it cannot parse beyond that >point. > > Please supply me with any ideas as to how I could make corrections >so as >to > enable my script to work preferably through email as I don't >usually read > news. > > Thanks in advance. > >Agatha Chee >email: ac2@doc.ic.ac.uk In order to access that variable from the message box and have anything useful result the variable must be declared globally. That is you need a line (and you have to have this line in every handler that uses the variable) 'global variablename'. -- Ken Knight, Ken.Knight@f421.n109.z1.fidonet.org via The Black Cat's Shack's FidoNet<->Usenet Gateway blkcat.fidonet.org and Fidonet 1:109/401