Getting a list of cards in a stack

Mike Bonner bonnmike at
Mon Nov 22 11:08:29 EST 2010

Look at cardNames in the dictionary. And after you get the cardNames you can
use filter to remove the card that has the list field.  So something like
this in a button will do what you want.  For the quick test I just put it in
a button on the card with the listfield.

on mouseUp
   get the cardnames of this stack
   filter it without the short name of this card
   put it into field "yourListField"
end mouseUp

On Mon, Nov 22, 2010 at 8:58 AM, Scott Pepperdine <spepper at> wrote:

> What command would I use to populate a list field with the names of all the
> cards in a stack? Preferably omitting the card the list field is on?
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the Use-livecode mailing list