if savedialog1.Execute then
begin
form1.ADOConnection1.Close;
form3.ADOConnection1.Close;
if copyfile(Pchar(savedialog1.filename),pchar(getcurrentdir+'\毕业设计\date\date.mdb'),false) then
begin
messagebox(handle,'数据备份成功','提示',mb_ok+mb_iconexclamation);
form1.ADOConnection1.open;
form3.ADOConnection1.open;
end
else
messagebox(handle,'数据备份失败','提示',mb_ok+mb_iconexclamation);
form1.ADOConnection1.open;
form3.ADOConnection1.open;
end;
一个按钮中加入这段话,死活不能保存,请高手解决下.交换copyfile里的两个内容也是一样不能保存
begin
form1.ADOConnection1.Close;
form3.ADOConnection1.Close;
if copyfile(Pchar(savedialog1.filename),pchar(getcurrentdir+'\毕业设计\date\date.mdb'),false) then
begin
messagebox(handle,'数据备份成功','提示',mb_ok+mb_iconexclamation);
form1.ADOConnection1.open;
form3.ADOConnection1.open;
end
else
messagebox(handle,'数据备份失败','提示',mb_ok+mb_iconexclamation);
form1.ADOConnection1.open;
form3.ADOConnection1.open;
end;
一个按钮中加入这段话,死活不能保存,请高手解决下.交换copyfile里的两个内容也是一样不能保存
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货