Hello,
My problem is the execution jumps over a lot of code.
In my example it jumps from "if" to the last end;, without executing anycode inbetween.
Why?
I had no "if" before and the one line was executed before the procedure was ended.
No error message is returned.
All ideas and help is very much appreciated.
procedure TFrmTranslate.ExportAsTextfileClick(Sender: TObject);
begin
if fileExists(FrmTranslate.FileListBox.FileName) then
begin
.
.
.
end
else
showmessage('Can not find file: ' + FrmTranslate.FileListBox.FileName);
end;