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
   put the uMyLabel of btn n into tName put tName & cr after theList end if end repeat delete char -1 of theList end repeat put theList into fld "recommendations" end mouseUp Mike --- On Fri, 10/12/12, Charles Szasz wrote: From: Charles Szasz Subject: Repeat script does n

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

Repeat script does not work

2012-10-12 Thread Charles Szasz
The following script works for finding a checkbox that is checked and putting its custom property (uMyLabel) into the field "recommendations" on the marked card that it is on. However, it fails to put the uMyLabel of another checked checkbox that is on another marked card into the field "recomme