ClientDataSet.First;
while not ClientDataSet.eof do
begin
ClientDataSet.edit;
ClientDataSet.FieldByName('行号字段').asInteger := ClientDataSet.RecNo;
ClientDataSet.next;
end;
ClientDataSet.First;
while not ClientDataSet.eof do
begin
ClientDataSet.edit;
ClientDataSet.FieldByName('行号字段').asInteger := ClientDataSet.RecNo;
ClientDataSet.next;
end;