send message with parameter

Erik Hansen erikhans08 at yahoo.com
Tue Aug 17 18:17:07 EDT 2004


--- Dar Scott <dsc at swcp.com> wrote:

> > How do I send a message with a param?
> 
>      send "myHandler param1" to stack "abc"

after trying all sorts of things like
send "myHandler" && ("guy" & comma & i)
which usually work,  i have settled on
the Dar's Razor approach:

on Andale
...
put ("guy" & comma & i) into pClumpsOfStuff
send "setDancers pClumpsOfStuff" to \
stack (the mainstack) in tSpeed milliseconds
...
end Andale

on setDancers pClumpsOfStuff
-- IMPORTANT --
put item 1 of pClumpsOfStuff into pWho
put item 2 of pClumpsOfStuff into i
...
end setDancers

setDancers ignores any parameters beyond 1.

=====
erik at erikhansen.org    http://www.erikhansen.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the use-livecode mailing list