Hi see the code below . If './images/'+DataSet.FieldByName('File_Img').AsString doesn't exists on folder "images" Bitmap.LoadFromURL give me error its ok ? how avoid this situation when scrolling records ?
DataSet.First();
While Not DataSet.Eof Do Begin
With Items.Add Do Begin
If DataSet.FieldByName('File_Img').AsString <> '' Then
Bitmap.LoadFromURL('./images/'+DataSet.FieldByName('File_Img').AsString);
End;
DataSet.Next();
End;
sorry but i need a solution to solve that !!
I think you must create a check on your component when image loading : do not crash application if image doesnt exists !!! is logical