张
张无极
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
begin
table1.open;
table1.Edit;
table1.First;
while not table1.Eof do
begin
table1.Fields[2].asstring:=copy(table1.fields[2].AsString,1,10);//fields[2]是日期型
table1.Next;
end;
table1.close;
showmessage('完成');
end;
运行时总是提示"table1:dataset not in edit or insert mode."
请大侠指点!
begin
table1.open;
table1.Edit;
table1.First;
while not table1.Eof do
begin
table1.Fields[2].asstring:=copy(table1.fields[2].AsString,1,10);//fields[2]是日期型
table1.Next;
end;
table1.close;
showmessage('完成');
end;
运行时总是提示"table1:dataset not in edit or insert mode."
请大侠指点!