Sending a message to multiple objects

DunbarX at aol.com DunbarX at aol.com
Tue Apr 20 17:22:35 EDT 2010


Mark is spot on about using the "dispatch" command, but remember that if 
you write a repeat loop as in:

on mouseUp
    repeat with y = 1 to the number of controls
       dispatch yourMessage with yourParams to control y
    end repeat
end mouseUp

you will only get the controls on the current card. You asked about all 
controls in memory. Did you mean on other cards? In other stacks? You need to 
catch those as well.

Craig Newman



More information about the Use-livecode mailing list