H
hmily1688
Unregistered / Unconfirmed
GUEST, unregistred user!
我库中有一crema_id,为自增型的,在保存按钮中的代码如下
if AdoDataSet1.State = DsInsert then
begin
AdoDataSet1.Post;
ShowMessage(ADODataSet1.fieldbyname('cremation_in_id').AsString);
end
else
begin
AdoDataSet1.Post;
ShowMessage(ADODataSet1.fieldbyname('cremation_in_id').AsString);
end;
新增时库中是131,为何显示出来的是55,如果为修改则显示正确。为什么 ?
if AdoDataSet1.State = DsInsert then
begin
AdoDataSet1.Post;
ShowMessage(ADODataSet1.fieldbyname('cremation_in_id').AsString);
end
else
begin
AdoDataSet1.Post;
ShowMessage(ADODataSet1.fieldbyname('cremation_in_id').AsString);
end;
新增时库中是131,为何显示出来的是55,如果为修改则显示正确。为什么 ?