3 syntax errors just don't make any sense to me
<--------1st one------------->
Error: Statement expected but expression of type TButton found at the exit statement in:
// open the input file
AssignFile(inF, hypackFileEdit.Text);
Reset(inF);
if IOResult <> 0 then
begin
showmessage('could not open ' + hypackFileEdit.Text + ' for some reason');
CloseFile(inF);
exit; // Won't compile past this point!
end;
This is in
procedure TMainForm.ProcessSrcClick(Sender: TObject);
which is a button click procedure
<---------2nd one--------------->
Error line 192: Incompatable types
Seek(inF, 0); // rewind to start
inF is a File var of type 'TextFile' declared as
var inF, otF, qcF: TextFile;
<---------3rd one--------------->
Error line 216: Incompatible types
// rewind again and find the first 'FIX' record
Seek(inF, 0); //
Any ideas?
Bob
<--------1st one------------->
Error: Statement expected but expression of type TButton found at the exit statement in:
// open the input file
AssignFile(inF, hypackFileEdit.Text);
Reset(inF);
if IOResult <> 0 then
begin
showmessage('could not open ' + hypackFileEdit.Text + ' for some reason');
CloseFile(inF);
exit; // Won't compile past this point!
end;
This is in
procedure TMainForm.ProcessSrcClick(Sender: TObject);
which is a button click procedure
<---------2nd one--------------->
Error line 192: Incompatable types
Seek(inF, 0); // rewind to start
inF is a File var of type 'TextFile' declared as
var inF, otF, qcF: TextFile;
<---------3rd one--------------->
Error line 216: Incompatible types
// rewind again and find the first 'FIX' record
Seek(inF, 0); //
Any ideas?
Bob