Y
yicheng
Unregistered / Unconfirmed
GUEST, unregistred user!
我用:procedure TForm1.Button1Click(Sender: TObject);var s:String; sFileName:string;begin sFileName:='c:/qin.xls'; s:='Provider=Microsoft.Jet.OLEDB.4.0;Password="";Data Source=' + sFileName + ';Extended Properties="Excel 8.0;IMEX=1";Persist Security Info=False'; with adoquery1 do begin ConnectionString:=s; Close; SQL.Clear; SQL.Text := 'SELECT * FROM ' + '[sheet1$]'; Open; endend;将EXCEL文档内容读入adoquery后,这时,如果我不退出程序,我要删除C盘下面的 c:/qin.xls 这个文档。如何处理?