How to use parameters with sendMesssage

Klaus Major klaus at major-k.de
Wed Apr 13 12:59:35 EDT 2005


Hi David,

> Hi All,
>
> I can't get this to send the correct paramater handler
>
> set myRect to 1,2,3,4
> sendMessage "UpdateData " & myRect to group "Update"
> on UpdateData theRect
> end updateData
>
> UpdateData gets called ok, but "theRect" is set to "1" - the rest of 
> the list have gone.
>
> How can I send a Rect as a parameter like this?

????

I wonder why this does work at all, since there is no "sendmessage" 
command???
You surely mean "send"...


This will work:
...
put "1,2,3,4" into myRect
### ;-)

send "UpdateData myRect" to group "Update"
...

Hope that helps.

> Thanks in Advance
> Dave

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list