Listing all images in a card

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Listing all images in a card

Post by scotttyang » Thu Apr 26, 2012 3:32 am

Trying to find a way to list all the images in one card.

Something like put the images in card x, obviously doesn't work. Any work arounds?

Scott

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Listing all images in a card

Post by sturgis » Thu Apr 26, 2012 3:33 am

Something like this should work.
repeat with i = 1 to the number of images of cd "cardname"
put the short name of image i & return after tImages

end repeat
delete the last char of tImages
put tImages

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: Listing all images in a card

Post by scotttyang » Thu Apr 26, 2012 3:39 am

Ah, of course! needed more coffee!

Post Reply