V
victorsailer
Unregistered / Unconfirmed
GUEST, unregistred user!
with CDS_TbYwfdo
begin
First;
Edit;
while not Eofdo
begin
FieldByName('SPJE').AsFloat := FieldByName('SQJE').AsFloat;
Next;
end;
Post;
if (ChangeCount > 0) or Modified then
begin
if ApplyUpdates(-1)<>0 then
begin
Application.MessageBox('保存退业务费信息出错','错误:',MB_ICONERROR);
Exit;
end;
end;
end;
执行以上程序后,数据库中只修改了第一条记录的SPJE字段,这是为啥?如何修改?
begin
First;
Edit;
while not Eofdo
begin
FieldByName('SPJE').AsFloat := FieldByName('SQJE').AsFloat;
Next;
end;
Post;
if (ChangeCount > 0) or Modified then
begin
if ApplyUpdates(-1)<>0 then
begin
Application.MessageBox('保存退业务费信息出错','错误:',MB_ICONERROR);
Exit;
end;
end;
end;
执行以上程序后,数据库中只修改了第一条记录的SPJE字段,这是为啥?如何修改?