有没有人用过ADOTABLE.DELETERECORDS?(50分)

  • 主题发起人 主题发起人 hp_wang
  • 开始时间 开始时间
H

hp_wang

Unregistered / Unconfirmed
GUEST, unregistred user!
论坛居然找不到相关资料
我在使用ADOTABLE。DELETERECORDS(ARALL);//删除全部记录
的时候,错误提示:操作在该内容中不被允许

啥意思?怎么办?
 
你看看幫助吧。
Deletes one or more records in the dataset.

TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);

Description

Use DeleteRecords to delete one or more records from the recordset the ADO dataset component represents.

If the recordset does not support record deletions, an exception is raised. Use the Supports method to determine whether the recordset supports deleting records.

If the dataset was opened in batch update mode, the records are only marked for deletion. Apply the batch deletions by calling the UpdateBatch method. If the dataset is not in batch update mode, the records are immediately removed from the base table.

AffectRecords is a TAffectRecords constant that determines which records are deleted by DeleteRecords. The default value for the AffectRecords parameter is arAll, which causes all records in the recordset to be deleted.

Option Meaning

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)
 
俺E文不好,它好象说需要一个SUPPORT语句
dkdwquery.Supports();//该如何写呢?
dkdwquery.DeleteRecords(arall);
 
都吃饭去了?帮忙啊?!!!!!!!!!!!
 
怎么?难道你们真的不救我吗?
 
你们又多吃晚饭去了?
 
都吃早点去了?
 
50分都不要?回答啊?!!
 
TELL ME !!!!!!!!!三天了。
 
接受答案了.
 
后退
顶部