我知道这个是用来删除dataset里全部记录的,就是不知道具体格式是怎样的,请教一下,谢谢。

解决方案 »

  1.   

    TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
    procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
    arCurrent Only the deletes the current record.
    arFiltered Only deletes records accessible through the current filter.
    arAll Deletes all records in the recordset.
    arAllChapters Deletes records in all chapters (ADO chapters)例:AdoDataSet.DeleteRecords([arAll])//这样就删除掉全部了!
      

  2.   

    不行啊,我用adodataset1.deleterecords(arAll);
    后。
    提示'Operation is not allowed in this context'