[comp.sys.mac.hypercard] More Hypercard XCMD's

twleung@athena.mit.edu (Theodore W. (Ted) Leung) (08/21/88)

<Zap! Line-eater>

Thanks to those who sent me help about the XCMD.  I've been away on
vacation, but I now have a working XCMD that can send Hypertalk
messages.  There is a hitch, though.  The if I try to execute 'doMenu
"New Card"' from the XCMD, I get 5 new cards and then an error about
too much recursion.  In reading Gary Bond's description about SendCardMessage,
he warns that moving to a different card causes the new card to become the
current card AND become the recipient of the message sent by SendCardMessage.
This explains the apparent recursion, since New Card creates a card and moves
there, the newly created card gets a New Card . . . . .   I tried using
SendHCMessage, which is supposed to bypass the inheritance hierarchy, but I
also get the "too much recursion" error.  What am I doing wrong?


Ted Leung
-------------------------------------------------------------------------------
Ted Leung      						     MIT/Project Athena
UUCP:...mit-eddie!athena.mit.edu!twleung       Internet: twleung@athena.mit.edu