Path of source of image element

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Path of source of image element

Post by exheusden » Thu Mar 10, 2011 3:53 pm

One of the Basic Properties of an Image element is "Source" and it contains the path of the file that is shown in the element.

How can the contents of this property be retrieved i.e. the path name?

(I have tried get the source of image "imageName" for example, but nothing has worked for me.)

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

Re: Path of source of image element

Post by Dixie » Thu Mar 10, 2011 4:24 pm

hi..

put the filename of image "imageName"
This will put the filepath of the image file into the message box.

be well

Dixie

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Path of source of image element

Post by bn » Thu Mar 10, 2011 4:25 pm

Hi exheusden,

try

Code: Select all

put the filename of image "myImage" into myVar
if it is a referenced image, i.e. loaded from a file on disk it gives you the path and name of the file, if it is not a referenced image it will be empty.

Kind regards

Bernd

exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Re: Path of source of image element

Post by exheusden » Thu Mar 10, 2011 4:51 pm

Thank you Dixie and Bernd.

Just what I needed.

Post Reply