begin
if not OpenDialog1.Execute then Exit;
ADOConnection1.ConnectionString := Format(
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;Persist Security Info=False',
[OpenDialog1.FileName]);
try
ADOConnection1.GetTableNames(ComboBox1.Items);
except
MessageDlg('不关我的事', mtError, [mbOk], 0);
end;
end;
if not OpenDialog1.Execute then Exit;
ADOConnection1.ConnectionString := Format(
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;Persist Security Info=False',
[OpenDialog1.FileName]);
try
ADOConnection1.GetTableNames(ComboBox1.Items);
except
MessageDlg('不关我的事', mtError, [mbOk], 0);
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货