getting the name of an image ID

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

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

getting the name of an image ID

Post by scotttyang »

What is the way to get the NAME of an image using the ID in the Image Library?

if an image ID 2002 has the name "cat.png", I would like to be able to get "cat.png" by referencing ID 2002.

So something like "put the name of id 2002" doesn't work give me "cat.png".

What is a way to get the Name of an image by using the ID of the image?

Scott
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: getting the name of an image ID

Post by Dixie »

Scottyang…

Code: Select all

   put the short name of image id 1003
That should do it for you

be well

Dixie
Post Reply