Target controls on a card that are *not* part of a placed groups
Dr. Hawkins
dochawk at gmail.com
Sun Mar 6 10:27:17 EST 2016
On Sat, Mar 5, 2016 at 10:57 PM, Charles Warwick <
charles at techstrategies.com.au> wrote:
> You can get a list of the shared groups that are being used on a card by
> using "get the sharedGroupNames of card xxx".
>
Is it reliable? The undocumented function for unplaced groups produces
both false positives and false negatives.
>
> For buttons that aren't in groups, the owner will be the card. If they
> are in a group, the owner of the button will be the group they are in.
>
repeat with i = the number of buttons on this card down to 1
if word 1 of the name of button i of this card is not "card" then next
repeat
--do stuff to the button
end repeat
By counting down instead of up, you can delete the button without messing
with your loop, if that is indeed what you want to do based upon the tests
in do stuff
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list