菜鸟问题,各位大哥请帮一下忙,对您 来说是太简单了!!多谢(50分)

A

abc_xp

Unregistered / Unconfirmed
GUEST, unregistred user!
with Table1 do
begin
Open;
First;
FieldValues['F1']:='a';
Opst;//为何这句不对?提示:数据集不在edit或insert模式下
//如何解决?
end;

在追加模式下是对地
table1.append;
table1.FieldValues['f1']:='a';
table1.post;

到底应该怎样修改某条记录的值啊???
 
先edit
在post
 
数据集在edit 或 insert(append) 时才能post
 
with Table1 do
begin
Open;
First;
Edit;
FieldValues['F1']:='a';
post;
end;
 
edit--->post
 
把open 放在begin..end; 之外,
先open;
 
应先置于edit或insert或append状态才能post;
 
多人接受答案了。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
844
SUNSTONE的Delphi笔记
S
顶部