Looking for certain types of buttons

Kaveh Bazargan kaveh at river-valley.com
Thu May 4 07:25:26 EDT 2006


I have the following code:

   repeat with i = 1 to the number of btns
      if the my_property of btn i is not property_one then next repeat
        ...
      end if
    end repeat

Question is, is there a better way of writing this so that the handler only
looks at buttons whose my_property is property_one?

The main reason I want this is to reduce the time taken when stepping
through the script for debugging. At the moment it goes through the loop
once for every button.
-- 

Kaveh Bazargan
http://www.river-valley.com/
http://www.holographer.org/



More information about the use-livecode mailing list