send a message to n cards

Jan Schenkel janschenkel at yahoo.com
Mon Sep 16 09:42:01 EDT 2002


Hi Sylvain,

Try putting this in your stack script:

on sendAllCards pMessage
  repeat with i = 1 to the number of cards \
  of this stack
    send pMessage to card i of this stack
  end repeat
end sendAllCards

Now you can use sendAllCards to accomplish your goal.

Hope this helped,

Jan Schenkel.

"As we grow older, we grow both wiser and more foolish
at the same time."  (De Rochefoucald)

--- Sylvain_Le_Gourriérec
<sylvain.legourrierec at son-video.com> wrote:
> hello,
> 
> 
> I need a script that send a message from a stack to
> all the cards of this stack.
> how can I write it?
> 
> thanks
> 
> 
>
---------------------------------------------------------------------------------------------------------------------------------------------
> Sylvain Le Gourriérec  --  développement  --
> son-video-distribution   www.son-video.com
> 
> ------------- I am working with Windows 2000,
> Revolution 1.1.1, MySQL 3.23 & PHP 4
> 


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com



More information about the Use-livecode mailing list