Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't use append!

Status
Not open for further replies.

troyu

Programmer
Nov 21, 2000
185
CA
I am trying to write to a text file.

I am trying to use the "append" command. However, I am continually getting the error message
"Error 85: ";" expected"
I have tried to place the ";" in places I think are correct, but I can't get past this error message.

Help.
 
That usually means you're missing a semi-colon on the line above. If that's not the case, can you post a code-snippet? TealWren
 
Hi Troyu, Did you received any help ?, If not please
send me some of your source code, And I let you kow
If I can find the problem O.K. ? Have a nice Day.


Antonio Arocha
Antonio_Arocha@Hotmail.Com

Hi If I can help you with Pascal or Delphi programming, Speciality with Btrieve 5.0/6.10/6.15 Data Files just let me know.....
 
Troyu,

Here is a procedure that i wrote, it appends a string to the text file......hope it is some help

procedure TForm1.WriteLog;
var
f: TextFile;
LogFileName : string;
begin
LogFileName := 'C:\ERR_LOG\Errors.log';

AssignFile(f, LogFileName);

Append(f);
Writeln(f, Error reported with recipe field in table MACH_SEQ.');
Flush(f); { ensures that the text was actually written to file }
CloseFile(f);

end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top