
Zitat von
DeddyH:
Delphi-Quellcode:
if not FileExists(Pfad + bildarray[zufall1]) then
ShowMessage('Datei existiert nicht: "' + Pfad + bildarray[zufall1] + '"')
else
Image1.Picture.LoadFromFile(Pfad + bildarray[zufall1]);
Was kommt hierbei heraus?
Warum sollte denn der Fehler EInvalidGraphic angezeigt werden, wenn der Dateiname nicht stimmt?