当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Delete 方法

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO Delete 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 382 ::
收藏到网摘: n/a

The Delete method is used to delete the current record or a group of records. After deleting a record, the deleted record remains current until you move to a different record.
Delete的作用是:删除当前的一条记录或一组记录。在删除一条记录之后,被删除的记录在你移动到一个不同的记录之前,都将保留当前值。

Note: If you are in batch update mode the deletion happens when you call the UpdateBatch method.
注意:如果你处于批量更新模式[batch update mode]的设置下,当你请求UpdateBatch方法时,记录将被删除。

Note: To use this method assure that the Recordset object allows record deletion.
注意:如果你的Recordset[记录集]对象允许删除记录,那么可以调用这个方法。

Note: If this method fails, the provider will not stop the execution, but it will send a warning to the Errors Collection. 
注意:如果这个方法失效,那么技术提供对象[provider]也不会停止执行程序,但是,此时它会向Errors[错误]集中发送一段警告信息。

Syntax
语法

objRecordset.Delete affectrecords

Parameter参数 Description描述
affectrecords An AffectEnum value that specifies which records this method will delete. Default is adAffectCurrent
指定一个AffectEnum值。它是用来指示:使用Delete方法删除哪些记录。默认值为:adAffectCurrent


AffectEnum Values

Constant
常量
Value
Description
描述
adAffectCurrent 1 Deletes only the current record
仅删除当前记录
adAffectGroup 2 Deletes only records that satisfy the Filter setting (Filter must be set to a FilterGroupEnum value or an array of Bookmarks)
对满足当前 Filter 属性设置的记录取消挂起更新。使用该选项时,必须将Filter属性设置为合法的FilterGroupEnum常量之一或设置成一个书签数组

评论 (0) All

登陆 | 还没注册?