怎么,难道用CrecordSet的Delete不能彻底删除吗?

解决方案 »

  1.   

    行吗?,panda_w老兄有试过吗?,恐怕除了直接读写dbf文件,不就得了 
      

  2.   

    去看一下MSDN关于CRecordSet的Delete方法的帮助吧!
    里面有这样一段话:After a successful deletion, the recordset’s field data members are set to a Null value, and you must explicitly call one of the Move functions in order to move off the deleted record. Once you move off the deleted record, it is not possible to return to it. If the data source supports transactions, you can make the Delete call part of a transaction. 
    我的理解是,你要在Delete方法执行后再做一次roll action or transaction!
      

  3.   

    好像delete()以后再update()就行了吧。
      

  4.   

    zjucypher大哥:
    你能说清楚一点吗。
    stzhou大哥:
    好象只有在Edit或AddNew后才能用Update();请大家再帮帮忙!谢谢!