Unobvious Delphi syntax error
问题 I have a problem with some simple code I simply cannot resolve. I'm using Delphi 5 with all updates applied. I have this code block: procedure TForm1.LoadBtnClick(Sender: TObject); var s1, s2, s3 : Textfile; sa, sb, RString, SQLString : string; begin with sourcequery do begin Close; SQL.Clear; SQL.Add('delete * from source'); ExecSQL; Close; AssignFile(S2, 'c:\delphi programs\events\source1.txt'); AssignFile(S1, 'c:\delphi programs\events\source2.txt'); Reset(s2); Reset(s1); while not eof(s1)