Using Mark's example, another possible option is make the custom
property a condition for the repeat;
repeat until KK = 25 or the cClicked of btn "Cancel" is true
set the vis of btn "B" to false
wait 20 ticks with messages
set the vis of btn "B" to true
wait 20 ticks with messages
put KK into fld "KNT"
add 1 to KK
end repeat
On 14/07/2014 10:01, Mark Schonewille wrote:
repeat until KK = 25
if the cClicked of btn "Cancel" is true then exit repeat
set the vis of btn "B" to false
wait 20 ticks with messages
if the cClicked of btn "Cancel" is true then exit repeat
set the vis of btn "B" to true
wait 20 ticks with messages
if the cClicked of btn "Cancel" is true then exit repeat
put KK into fld "KNT"
add 1 to KK
end repeat
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode