Just as in Delphi, SysUtils must be in the uses-clause for FileExists to be found.
-Andreas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brendon Toogood Sent: Wednesday, 14 August 2002 02:42 To: Multiple recipients of list delphi Subject: Re: [DUG]: help with kylix2 On Tuesday 13 August 2002 13:37, you wrote: > You don't have QForms in your uses clause. > procedure TForm1.FormCreate(Sender: TObject); begin {Clear the edit boxes} ClearData; {Clear Current Record Counter} CurRec:=0; {Set Filename} Fname:='ADDRESS.ABK'; {Set File Variable} AssignFile(AddressFile,Fname); {Get Record Size} RecSize:=SizeOf(AddressData); {If file exists, load it} If FileExists(Fname) then //Undecleared identifier FileExists Begin Reset(AddressFile); If not Eof(AddressFile) then begin Read(AddressFile,AddressData); ShowRecord; end; --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/