At 13:48 +0200 2001_06_22, Michael Nadel wrote:
>Whenever I pass a command from one behavior to another with a variable, the
>variable turns up all messed up! For example, when I write in a behavior on
>sprite 3:
>
>sendSprite(3, #checkRight, 15)
>
>And then on another behavior on sprite 3 I write:
>
>on checkRight whatNumber
> put whatNumber
>end
>
>This is what I get in the message window!
>
>-- <offspring "findSound" 4 125c4b8>
>
>All I want is the number 15, not this weird line. Can someone tell me what I
>am doing wrong please?
>How do I pass a variable from behavior to behavior?
You have entered the realm of OOP.
on checkRight me, whatNumber
Jakob
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]