make the following change:

<LINGO>
on displayStatement me, memName
<LINGO>

By default the object reference "me" is passed to the handlers as the first
argument.


~Sandy.

* Anything less than extraordinary is not acceptable to me. *




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mikael Wir�n
Sent: Friday, January 04, 2002 4:15 PM
To: [EMAIL PROTECTED]
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