我使用了以下代码修改table1中的数据table1.recno := 1;
while not table1.eof do
begin
table1.edit;
table1.fieldvalue['hark'] := '1';
table1.post;
table1.net;
end;修改table1表中的hark字段全部为1
但是重新启动之后,被修改的字段值又恢复原样(不能被修改了?)
while not table1.eof do
begin
table1.edit;
table1.fieldvalue['hark'] := '1';
table1.post;
table1.net;
end;修改table1表中的hark字段全部为1
但是重新启动之后,被修改的字段值又恢复原样(不能被修改了?)
for i = 1 to table1.RecordCount-1 do
begin
table1.FieldByName('hark').asstring := '1';
table1.post;
table1.next;
end;
这样!
while not table1.eof do
begin
table1.edit;
table1.fieldvalue['hark'] := '1';
table1.post;
table1.next;
end;
Table1.ApplyUpdates
再帮我想想办法吧!万分感谢!
就像樓上的所說﹐速度可快多了
試試在后面加上這個看看
while not table1.eof do
begin
table1.edit;
table1.fieldvalue['hark'] := '1';
table1.post;
Table1.ApplyUpdates
table1.next;
end;我是来UP一下!呵呵!