Re: Repeat script does not work

2012-10-12 Thread Charles Szasz
Michael, Thanks again for your help! Charles Szasz csz...@mac.com ___ 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

Re: Repeat script does not work

2012-10-12 Thread Michael Kann
/12/12, Michael Kann wrote: From: Michael Kann Subject: Re: Repeat script does not work To: "How to use LiveCode" Date: Friday, October 12, 2012, 2:53 PM Charles, Could it be this: on mouseUp repeat with y = 1 to the num of cards if the mark of card y = false then next repeat end i

Re: Repeat script does not work

2012-10-12 Thread Charles Szasz
Hi Mike, Thanks for your suggestion! I was trying out your script but I could not get it to work. I think the end repeat is misplaced. Charles Szasz csz...@mac.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url t

Re: Repeat script does not work

2012-10-12 Thread Charles Szasz
Pete, I have thought of doing a repeat within a repeat but thought it would be simpler to keep them separate to avoid errors. But your script does work! As you indicated, the references to button n must be the problem. I am working on this script to use with a lot of marked cards. So, if it wo

Re: Repeat script does not work

2012-10-12 Thread Michael Kann
Charles, Could it be this: on mouseUp repeat with y = 1 to the num of cards if the mark of card y = false then next repeat end if put the num of btns of card y into nbr repeat with n = 1 to nbr if the style of btn n is "checkbox" and the hilite of btn n is true then put the uMyL

Re: Repeat script does not work

2012-10-12 Thread Peter Haworth
I think you need to include the second repeat within the first repeat and also fully qualify the references to button n, maybe something like this: on mouseUp repeat with y = 1 to the number of cards of stack "xyz" if the mark of card y of stack "xyz"= true then put the number of