数据的连接方式是BDE,在插入新的数据的时候出现下面的画面:
project yedf.exe raised exception class EDBengineerror
with message cannot load an idapi service library
file: idpdx32.dll process stop use step or run to continue
...全文
513打赏收藏
执行程序时发生这样的错误提示,不知道该怎么处理?
数据的连接方式是BDE,在插入新的数据的时候出现下面的画面: project yedf.exe raised exception class EDBengineerror with message cannot load an idapi service library file: idpdx32.dll process stop use step or run to continue
procedure TForm1.Table1PostError
(DataSet: TDataSet; E: EDatabaseError;
var Action: TDataAction);
begin
if (E is EDBEngineError) then
if (E as EDBEngineError).Errors
[0].Errorcode = eKeyViol then
begin
MessageDlg(出现重复记录!,
mtWarning, [mbOK], 0);
Table1.Cancel;
Abort;
end;
end;