[comp.sys.mac.hypercard] functions in HyperCard hierarchy

ericr@constellation.UUCP (Eric Rose) (07/31/89)

How does one "send" a function to an object?  I have a background script that
needs to invoke a function on a particular card.  I built it this way so that
I could have card-dependant functions, one for each card, but only need one
peice of code to call it.  I was using "send" and a global variable for the
function's result, but that is inelegant.  "Send" only wants to send one
message.  I can type << send "get functionname()" to this card >> from the
message box, but when this line is invoked from a script, it cannot understand
the "get" in the "send".  Any ideas?  I tried looking in a couple of manuals,
and they say a lot about messages (on ...) and little about functions.


-Eric Rose
-Cognos...