View Full Version : getting selected image name ???

12-16-2007, 08:47 PM
hi, Im confused :huh

I have lots of photos showed in "Large_Image"....
so when I click one of my photo, it is showed in "Large_Image"
AND I want to take selected image name .

so what I want is =

in button click:

X = "name of loaded image in "Large_Image" "
Image.Load("Large_Image", "Autoplay//Images//X.jpg")

(loaded image in "Large_Image" and X.jpg are diffrent photos)

12-16-2007, 09:28 PM
Check the help on Image, that may explain it better.
Image.GetProperties() - There is a lot of information obtained about the Image, one of which is the name.

tProperties = Image.GetProperties("Large_Image");
Dialog.Message("Name: ", ""..x)


12-16-2007, 09:50 PM
and now I found a different way for my purpose...
"using the code that you give one of previous posts"

iProps = Image.GetProperties("Large_Image1")
uzunluk = String.Length(iProps.ImageFile) - String.ReverseFind(iProps.ImageFile, "\\", true);
title = String.Right(iProps.ImageFile, uzunluk );
tek = String.Left(""..title ,uzunluk - 6 );
A = tek..".jpg"
Input.SetText("Input1", ""..A);

Image.Load("Large_Image1", "AutoPlay\\Images\\"..A);

so I could load labelled images easily...(only deleting last letter)