Get the members of a group
Michael Doub
mikedoub at gmail.com
Wed Apr 25 12:31:56 EDT 2012
Can someone explain what is going on here? This works:
Put the number of graphics of me into count
repeat with i = count down to 1
if the short name of graphic i of me is not "TreeBG" then
delete graphic i
end if
end repeat
This does not:
Put the number of graphics of me into count
repeat with i = 1 to count
if the short name of graphic i of me is not "TreeBG" then
delete graphic i
end if
end repeat
Why is the order significant?
-= Mike
On Apr 25, 2012, at 11:45 AM, Klaus on-rev wrote:
> Hi Colin,
>
> Am 25.04.2012 um 17:34 schrieb Colin Holgate:
>
>> Should you be doing the repeat loop defending?
>
> hehe, "defending" :-)
> Took me a while...
>
> Yes of course:
> ...
> put the num of grcs of grp "your group here" into tNum
> repeat with i = tNum down to 1
> ## caress grc i of grp "your group here" :-)
> end repeat
> ...
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list