代码如下:
with query1 do
begin
open;
first;
edit;
while not eof do
begin
fieldbyname('值班时间').asdatetime:=now;
next;
edit;
end;
post;
end;
出现的错误提示是:Project Project1.exe raised exception class EDBEngineError with message' An error occurred while attempt ing to initialize the borland Database Engine(error $2501).
with query1 do
begin
open;
first;
edit;
while not eof do
begin
fieldbyname('值班时间').asdatetime:=now;
next;
edit;
end;
post;
end;
出现的错误提示是:Project Project1.exe raised exception class EDBEngineError with message' An error occurred while attempt ing to initialize the borland Database Engine(error $2501).
begin
open;
first;
edit;
while not eof do
begin
fieldbyname('值班时间').asdatetime:=now;
next;
end;
post;
end;
2 with query1 do
begin
open;
first;
edit;
while not eof do
begin
fieldbyname('值班时间').asdatetime:=now;
next;
end;
post;
end;
begin
open;
first;
edit;
while not eof do
begin
FieldValues['值班时间']:=now;
next;
edit;
end;
post;
end;
http://expert.csdn.net/Expert/topic/1580/1580239.xml?temp=.1213953
为什么每一次修改完之后都要重新修改它的编辑状态呢?
你可以告诉我吗?