数据是删掉了,系统也继续运行,但是会提示一句
---------------------------
Gtysystempub
---------------------------
AdoP: CommandText does not return a result set.
---------------------------
SQL语句是没有问题我的代码是这样的 begin
if MessageBox(0, pchar(StrMess), '请选择', MB_ICONQUESTION + MB_YESNO) = IDYES then
begin
with AdoP do
begin
try
close;
sql.Clear;
sql.Text:='delete from dprovince where vcProvinceNo = ' + '''' + nodepoint(tvDic.Selected.Data).StrKey + '''' ;
execsql;
//执行到这里弹出错误
//删除此节点
tvDic.Selected.Delete;
finally
close;
end;
end;
end;
end
---------------------------
Gtysystempub
---------------------------
AdoP: CommandText does not return a result set.
---------------------------
SQL语句是没有问题我的代码是这样的 begin
if MessageBox(0, pchar(StrMess), '请选择', MB_ICONQUESTION + MB_YESNO) = IDYES then
begin
with AdoP do
begin
try
close;
sql.Clear;
sql.Text:='delete from dprovince where vcProvinceNo = ' + '''' + nodepoint(tvDic.Selected.Data).StrKey + '''' ;
execsql;
//执行到这里弹出错误
//删除此节点
tvDic.Selected.Delete;
finally
close;
end;
end;
end;
end
解决方案 »
- 通讯方向案征集,高手请进
- 怎样进行并口操作,向打印机发送命令??急,拜托!
- 怎样制作气球窗体,象OFFICE助手那样的,有没有那样的组件
- 怎样在dbgrid回车后,让当前记录行改变颜色
- 多个dbgrid 如何保存到excel
- 请教高手一个有关ADO的问题,高分相送!!!!
- 如何获得打开输入法的“热键”(例如Ctrl+Space)???以及切换的“热键”???????
- (十万火急)RPC服务器无法使用?
- 液晶(明基)显示器,显示字体有像风吹过的效果,应该怎么解决?
- 关于Soap Server Wizard的Apache shared module(Dll)?
- ADO自动提交的问题,不自动提交
- DBEdit控件运行时为什么无法输入数据?
sql.Text:='delete from dprovince where vcProvinceNo = ' + '''' + nodepoint(tvDic.Selected.Data).StrKey + '''' ;
execsql;//用 sql.execute
应该用ADOQuery,最好用ADOCommand