
16.03.2012, 21:01
|
Модератор
|
|
Регистрация: 17.04.2008
Сообщения: 8,096
Версия Delphi: 7, XE3, 10.2
Репутация: 49089
|
|
Сделай полный путь:
Код:
var
AFileName : Stirng;
begin
AFileName := IncludeTrailingPathDelimiter(ExtractFilePath(Application.ExeName)) + 'source\posters\' + ListBox1.Items[ListBox1.ItemIndex]+'.jpg';
If Not FileExists(AFileName)
Then ShowMessage('File not found: ' + AFileName)
Else img4.Picture.LoadFromFile(AFileName);
|