当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO AbsolutePage 与 AbsolutePo

ADO
ADO介绍
ADO数据库连接
ADO记录集
ADO显示记录
ADO查询语句
ADO记录排序
ADO添加记录
ADO更新记录
ADO删除记录
ADO演示
ADO提升执行速度
ADO Command对象
ADO Connection对象
ADO Error
ADO Field
ADO Parameter
ADO 属性
ADO Record
ADO Recordset
ADO Stream

ADO AbsolutePage 与 AbsolutePo


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

AbsolutePage
AbsolutePage[绝对页面]属性

The AbsolutePage property sets or returns a long value that specifies the page number in the Recordset object. It sets or returns a value from 1 to the number of pages in the Recordset, or it returns a PositionEnum value. The value is 1 when the current record is the first record in the Recordset.
AbsolutePage属性的作用是:设置或返回一个用于指定记录集对象中具体页数的长值。它设置或返回了记录集中从1到指定页数的一个值,或者返回一个PositionEnum值。当当前记录指针指向记录集中的第一条记录时,它的值为1。

Tip: To get the total number of pages in the Recordset, use the PageCount property.
提示:你可以使用PageCount属性获取记录集中的总页数。

Tip: To divide the Recordset into a series of pages, use the PageSize property.
提示:你可以使用PageSize属性将记录集拆分成一组分页面。

Note: This property can only be used if the AbsolutePage, PageCount, and PageSize properties are supported by the provider.
注意:只有在技术提供对象[provider]支持AbsolutePage、PageCount和PageSize属性的情况下,才能使用该属性。

AbsolutePosition
AbsolutePosition[决对定位]属性

The AbsolutePosition property sets or returns a long value that specifies the ordinal (numeric) position of the current record in the Recordset object. It sets or returns a value from 1 to the number of records in the Recordset, or it returns a PositionEnum value. The value is 1 when the current record is the first record in the Recordset.
AbsolutePosition属性的作用是:设置或返回当前记录指针在记录集中具体位置的一个序数。它设置或返回了记录集中一个从1开始到指定记录序数的值,或者返回一个PositionEnum值。当当前记录指针指向记录集中的第一条记录时,它的值为1。当你将这个值设置成一个数字时,它将移动到该数字指针指向的具体记录位置。

When you set this property to a number, you will be moved to the record at the numeric position.
当你将这个值设置成一个数字时,它将移动到该数字指针指向的具体记录位置。

Tip: To get the total number of records in the Recordset, use the RecordCount property.
提示:你可以使用PageCount属性获取记录集中的总页数。

Note: Do not use this property to uniquely identify a record!
注意:不要使用该属性来鉴别一个记录的唯一性。

Syntax
语法

objRecordset.AbsolutePage
objRecordset.AbsolutePosition


PositionEnum Values

Constant常量 Value值 Description描述
adPosUnknown -1 Indicates that the Recordset is empty, the current position is unknown, or the provider does not support the AbsolutePage or AbsolutePosition property
指示Recordset为空、当前位置为知、或技术提供对象[provider]不支持AbsolutePage或AbsolutePosition属性
adPosBOF -2 Indicates that the current record pointer is before the first record (BOF)
指示记录指针位于第一条记录之前[BOF]
adPosEOF -3 Indicates that the current record pointer is after the last record (EOF)
指示记录指针位于最后一条记录之后[EOF]

评论 (0) All

登陆 | 还没注册?