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])//这样就删除掉全部了!
不行啊,我用adodataset1.deleterecords(arAll); 后。 提示'Operation is not allowed in this context'
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])//这样就删除掉全部了!
后。
提示'Operation is not allowed in this context'