Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
那就换成if dth is not nothing then试试
那就换成if dth is not nothing then试试
应该:if dth isnot nothing then 不过,这里不能这样判断,因为dim dth as datatable = cmd.ExecuteReader() 后,dth总是isnot nothing了·
楼主恐怕是缺少了:
......
else
return
end if
导致之后的代码还在执行造成的···
应该:if dth isnot nothing then 不过,这里不能这样判断,因为dim dth as datatable = cmd.ExecuteReader() 后,dth总是isnot nothing了·
楼主恐怕是缺少了:
......
else
return
end if
导致之后的代码还在执行造成的···
当 CommandText 的语法错误的时候 返回的结果就是nothing
楼主output.show(cmd.commandtext ) 把结果放到数据源里面执行一下看看语法是不是错了
当 CommandText 的语法错误的时候 返回的结果就是nothing
楼主output.show(cmd.commandtext ) 把结果放到数据源里面执行一下看看语法是不是错了
Hi!不好意思,真是语法错误造成的。CommandText 的语法错误的时候 返回的结果确是nothing
因为派车时间这个字段原来是有的,前天把这个字段修改出车时间,还以为是新版造成的,恐怕是人的惯性思维造成。正常情况下肯定会去检查是否语法问题,刚好又忘记了修改过字段,所以。。。。。。
在此谢各位的帮忙。