Repeat script does not work
cszasz at me.com
Fri Oct 12 15:20:34 EDT 2012
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 "recommendations". What am I missing here!
repeat with y = 1 to the number of cards
if the mark of card y = true then
put the number of buttons of card y into nbr
repeat with n = 1 to nbr
if the style of button n is "checkbox" and the hilite of button n is true then
put the uMyLabel of button n into tName
put tName & cr after theList
delete char -1 of theList
put theList into field "recommendations"
cszasz at mac.com
More information about the Use-livecode