[comp.sys.mac.hypercard] And Yet Another Bug...

chh9@quads.uchicago.edu (Conrad Halton Halling) (08/25/90)

OK, another bug in HyperCard 1.2.5.

o The name of a card can be set to any(?) length (I have tested names up
  to 36 characters long).  However, HyperCard will not go to a card with
  a name that is longer than 29 characters.  Try the following in a stack
  with more than 1 card.  In one card, type into the message window:
       set name of this cd to "abcdefghijklmnopqrstuvwxyzabcd"
  Go to the next card.  Then type into the message window:
       go to cd "abcdefghijklmnopqrstuvwxyzabcd"
  HyperCard returns an alert window that states "No such card."

o So, stack names should not be longer than 30 characters (even though
  31 is OK under HFS), and card names should not be longer than 29
  characters.
  
Why is this a problem?  I am constructing a stack that controls access to
other stacks (which I will call "sub-stacks").  An easy way to do this 
(I thought) was to have a single card for each sub-stack.  I set
the name of the card to the name of the sub-stack.  Then I can go to
to the sub-stack with the command
          go to stack short name of this card
and I can return to the controller stack with the command
          go to cd short name of this stack of stack "controller"
But all these odd permissible lengths of names have caused me quite a bit
of trouble.  Now I have to screen to be sure that no stack has a name
longer than 29 characters.

Looking forward to HyperCard 2.0....   :-)
--
Conrad Halling
chh9@midway.uchicago.edu