problem with deleting buttons in a loop

Björnke von Gierke bvg at mac.com
Sat Sep 6 12:16:00 EDT 2003


i am deleting buttons in a loop, but somehow there is always a button 
that does not get deleted,  and I cant find out why. There is one other 
button in the group.
Can anyone explain this behaviour? Is this a bug, or am I making a 
stupid mistake?

   put the number of buttons in group "points" into a
   repeat with x = a down to 1
     if word one of the short name of button x = "point" then
       delete button x
     end if
   end repeat

Thank you in advance
Bjoernke




More information about the use-livecode mailing list