[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HyperCard Question



In article <1993Jan19.080305.6726@rdg.dec.com> gachot@bonnet.enet.dec.com () writes:
> 
>     The script does this:
> 
>         put field "ID" && field "Married 1 ID" into toCard
>         go to card toCard
> 
>     What goes into the container toCard is the two fields' contents with a
>     space between them; for example "03A0002 03A0003" - so I gave that name
>     to the desired target card and tried it.  I get a "no such card" error.
> 
>     Ideas, anyone?

Ah yes, one of the 'features' of HyperTalk that I like the least.  It
is impossible to do indirection.  Your 'go to' command is actually
trying to go to a card called 'toCard'.

Try the following instead:

    put "go to card " && quote && field "ID" &&
        field "Married 1 ID" && quote into theCommand
    do theCommand
-- 
David Empson

Internet: David.Empson@bbs.actrix.gen.nz    EMPSON_D@kosmos.wcc.govt.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand