rs.close是不是在set rs=queryext()后没有关闭的情况下,后面没办法再新赋值?

解决方案 »

  1.   

    没太看明白,rs.close本身就是关闭啊.
    我觉得这个问题主要是考虑到可能循环引用的问题,一般建议在结果集使用完后明确的用代码close掉.这样以后再用时比较可靠.
      

  2.   

    本帖最后由 bcrun 于 2010-10-31 09:20:46 编辑
      

  3.   

    http://download.csdn.net/source/1498324
      

  4.   

    if rs.state<>adstateclosed then rs.close
      

  5.   

    set rs=nothing
    我也遇到过在程序中明明执行了rs.close但在下面老说没对.
      

  6.   


    set rs = xxif rs.state <> 0 then rs.close
    set rs = nothingset rs = xxxif rs.state <> 0 then rs.close
    set rs = nothing