Mikael, try adding "me" to the handler declaration:

on displayStatement me, memName
etc...
och s� vidare...

If that doesn't work, check the script type.
And if it was "movie script", then have another cup of coffee, or some sleep...

Regards,

Bertil Flink
Creative Media
[EMAIL PROTECTED]


  
----- Original Message ----- 
From: "Mikael Wir�n" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 11:45 AM
Subject: <lingo-l> argument changing type by using sendSprite command


> Hi all.
> 
> I just ran into a strange thing. i�m using sendsprite to dynamicaly create a
> searchstring that has one element that may vary. The problem is this. i use
> this behavior on the buttons activating the handler called
> <LINGO>
> property mySprite, myName
> on beginSprite me
>   mySprite = me.spriteNum
>   myName = sprite(mySprite).member.name
> end
> 
> on mouseUp me
>   sendSprite(21,#displayStatement,myName)
> end
> </LINGO>
> This far myName is a string AFAIK
> it gives it�s name as a string if you put it in the message window
> on the other end it gets recieved by this handler
> <LINGO>
> on displayStatement memName
> put memName
>   lastLine = member("qHolder").lineCount
>   qKey = string("<"&qCount&"_"&memName&">")
>   put qKey && memName
> </LINGO>
> the first put gives -- <offspring "questions" 4 1acf034>
> the second one gives -- "<1_<offspring "questions" 5 4e24b8>> <offspring
> "questions" 4 4e24b8>"
> 
> Am i missing something essential here?
> because the string should read "<1_knapp_1>"
> 
> TIA
> /Micke
> 
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/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!]
> 
> 


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]

Reply via email to