A asiancat Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-21 #1 请问在query1.post的异常中如何识别出是因为主键冲突引起的异常?
B bjaman Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-21 #2 异常的"Key violation"信息--->主键违例
L labelsoft Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-21 #4 try Post; except on E: Exception do if Pos(UpperCase('Primary Key violation'), E.Message) > 0 then Application.MessageBox(); end;
try Post; except on E: Exception do if Pos(UpperCase('Primary Key violation'), E.Message) > 0 then Application.MessageBox(); end;