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

HyperCard Question



	This post is for a friend who is using HyperCard GS.

		-Erik.

                           -< Scripting problem >-

    I'm writing button scripts for a family tree stack I'm developing.  And
    having a little trouble with what should be simple!

    I'm trying to develop the name of a card to which I want to go when a
    button on a different card is pressed.  (Call them the target card and
    the source card.)  On the source card I have two fields named "ID" and
    "Married 1 ID" to hold the tree-related identification numbers assigned
    to the person whose card I'm on and that person's first spouse.  There
    is a button named "Children" - when it's clicked, I want the script to
    develop a name consisting of the two ID fields' contents and go to a
    card with that name, the target card, where their children are listed.
    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?