send message with parameter

Dar Scott dsc at swcp.com
Tue Aug 17 14:30:39 EDT 2004


On Aug 17, 2004, at 12:13 PM, Hershel Fisch wrote:

>>> How do I send a message with a param ?
>>> e.g.  send "myHandler" param1 to stack "abc"
>>
>>     send "myHandler param1" to stack "abc"
> Sorry, woun,t do it.

I just did it.

I put this handler in the stack script of stack "B"

on myHandler x
   put "[" & x & "]"
end myHandler

I put this handler in a button on card 1 of stack "A"

on mouseUp
   put "abc" into param1
   send "myHandler param1" to stack "B"
end mouseUp

I clicked the button.

Into the message box:
[abc]

It looks to me that this works.  Maybe I didn't understand what you 
need.

Dar

****************************************
     Dar Scott Consulting
     http://www.swcp.com/dsc/
     Programming Services
****************************************



More information about the use-livecode mailing list