Looking for certain types of buttons
Thomas McGrath III
3mcgrath at adelphia.net
Thu May 4 07:57:02 EDT 2006
Kaveh,
That seems very efficient but if you are trying to make debugging
quicker than put that code is a separate handler:
on mouseUp
...
cCheckBtn
...
end mouseUp
on cCheckBtn
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
end cCheckBtn
That way you can use the 'Over' step in the debugging process and
skip that code.
HTH
Tom
On May 4, 2006, at 7:25 AM, Kaveh Bazargan wrote:
> 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/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
Thomas J McGrath III
3mcgrath at adelphia.net
Lazy River Software - http://www.lazyriversoftware.com
Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html
Meeting Wear - http://www.cafepress.com/meetingwear
Semantic Compaction Systems - http://www.minspeak.com
SCIconics, LLC - http://www.sciconics.com/sciindex.html
More information about the use-livecode
mailing list