<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I'm having a problem deleting a database
file where PathN is a string containing the directory name eg: 'c:\Test' and
FileN is a string containing the file name </FONT></DIV>
<DIV><FONT face=Arial size=2> eg: 'New
Record.dbf''</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Using -</FONT></DIV>
<DIV><FONT face=Arial size=2> <BR> if FileExists(PathN + File)
then<BR> begin<BR> ShowMessage('File
Exists');
// and it
does<BR></FONT><FONT face=Arial
size=2> if
DeleteFile(PathN + 'New Record.dbf')
then<BR>
ShowMessage('File
Deleted')
// and it does occasionally</FONT></DIV>
<DIV><FONT face=Arial
size=2>
else</FONT></DIV>
<DIV><FONT face=Arial
size=2> ShowMessage('File
Not
Deleted');
// and it does mostly</FONT></DIV>
<DIV><FONT face=Arial size=2> end;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Note if I modify the code and use the
'Erase' procedure results are the same.</DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial size=2> Any clues as to why this oddity occurs?
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</DIV></FONT></BODY></HTML>