At 2:22 PM -0700 11/8/1999, Richard Gaskin wrote:
>Now, about the object reference question: It's hard to follow what's
>happening from the description alone. If you could post the syntax
>you're using, we can identify what's going on and make recommendations
>from there.
Thanks, Richard.
Here's a simplified example:
-----------------------------------------
On Card 1 (containing one field)
in button script
on mouseUp
send "doThing" to card 2
end mouse up
On Card 2 (containing one field)
in card script
on doThing
put "thing done" into field 1
end doThing
-----------------------------------------------
This puts "thing done" into field 1 of card 1. I expected it to
appear in field 1 of card 2.
My question was whether this was how it should be. My reading of the
docs was that "send" (in contrast to "call") uses the context of the
object the message was sent to (in this case card 2).
In this case, I don't see a difference between "send" and "call".
Not so much a problem as an inconvenience. I can make it work by
adding the card reference to the field (put "thing done" into field 1
of card 2), but that calls for more care if card names or numbers
change down the line. :(
Cheers
Dave Cragg