txt := edtCompany.Text;
ADOCommand1.Connection := ADOConnection1;
with ADOCommand1 do begin
CommandText:='update table set ...';
CommandType:=cmdText;
Parameters.ParamByName('compname').Value:=txt;
Execute;
end;
node := mainTree.Items.//这边如何更新,如同添加是Add(..),AddChildObject(..)
ADOCommand1.Connection := ADOConnection1;
with ADOCommand1 do begin
CommandText:='update table set ...';
CommandType:=cmdText;
Parameters.ParamByName('compname').Value:=txt;
Execute;
end;
node := mainTree.Items.//这边如何更新,如同添加是Add(..),AddChildObject(..)
解决方案 »
- 汗,一个棘手的问题
- 我用的是delphi7 有人建议下载个CNPACK,请问谁有,要合适delphi7的
- 爱国爱自己的同志请进!不进后悔!!!
- 本来一直运行得很好的程序,忽然报TabOrder property does not exist!
- InputBox的问题,在线等!!!
- memo的内容怎样直接打印?
- 谁帮我把这个代码 写成dll,万分感谢
- 高等学校毕业生见习期考核鉴定表
- batchmove的问题
- delphi网络编程SOCKET读写问题?
- 谁有《Delphi7程序设计与开发技术大全》源代码的section1和section2
- FastReport可以把中间Master data的行数固定吗?
我平时都是更新整个TreeView。
清空TreeView->读取数据->填充数据
mainTree.Items.GetNode(h).Text := txt;