Hi Fabrizio, thank you for your answer... but I'm still hazy.
Perhaps if I show you my code (modified from the EnImageExamples)
ImageEnMView1.Clear;
ImageEnMView1.FillFromDirectory(DirectoryListBox1.Directory);
ImageEnMView1.SelectedImage := 0;
ShowMessage(ImageEnMView1.ImageFileName[0]);//This displays the file name
ImageEnView1.io.LoadFromFile(ImageEnMView1.ImageFileName[0]);
//Load the main image variable as well as the label
pub_currentimagename := ExtractFileName(ImageEnMview1.ImageFileName[0]) ;
self.lbl_currentimage.Caption := pub_currentImageName;
Further on in the code if a user selects an image its entered as a new row in the sqlite db...
My next step is to allow the user to see what he/she has selected so far so instead of loading the directory I'd like to load only the selection from the database as a string...
Below is what I tried when it failed...
ImageEnMView1.Clear;
ImageEnMView1.MIO.LoadFromFiles('dacl_f_00058.jpg|dacl_f_00059.jpg');//A test string before dynamically generating from db.
ImageEnMView1.SelectedImage := 0;
ShowMessage(ImageEnMView1.ImageFileName[0]);// <-- it's now empty, "loadfromdirectory" autopopulates it but not LoadFromFile
ImageEnView1.io.LoadFromFile(ImageEnMView1.ImageFileName[0]);
pub_currentimagename := ExtractFileName(ImageEnMview1.ImageFileName[0]) ;
self.lbl_currentimage.Caption := pub_currentImageName;
What would you do to fix it?
Thank you!
Greg.
Greg.