S
ssh78
Unregistered / Unconfirmed
GUEST, unregistred user!
怎样在运行 Treeview1.items.addchild(Treeview1.selected,Tstring)的同时,向数据库
中这条记录的其他字段里添加数据?
我用了
with Treeview1.items.addchild(Treeview1.selected,caption) do
begin
table1.edit;
table1.fieldbyname('其他字段').AsString:='String';
table1.post;
end;
出现错误:Couldn't perform the edit because another user changed the record.
并且用:
if (Treeview1.Selected <> Nil) then
Treeview1.Selected.Delete;
的时候也出现这个错误
中这条记录的其他字段里添加数据?
我用了
with Treeview1.items.addchild(Treeview1.selected,caption) do
begin
table1.edit;
table1.fieldbyname('其他字段').AsString:='String';
table1.post;
end;
出现错误:Couldn't perform the edit because another user changed the record.
并且用:
if (Treeview1.Selected <> Nil) then
Treeview1.Selected.Delete;
的时候也出现这个错误