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

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 AppendChunk 方法


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

The AppendChunk method is used to append long binary or character data to a Parameter or Field object.
AppendChunk方法的作用是:向字段对象中追加长二进制数据或字符数据。

Tip: Use this method to manipulate long values in portions.
提示:可以使用这个方法对长值部分进行操作。

Object对象 Description of the AppendChunk Method关于AppendChunk方法的描述
Parameter

You can use the AppendChunk method for a Parameter object if the Attributes property is set to adFldLong.
如果Attributes属性被设置为adFldLong时,你可以对一个参数对象使用AppendChunk方法

First time you call the AppendChunk method on a Parameter object it overwrites any existing data. The next AppendChunk calls add data to existing parameter data.
当你在一个参数对象中第一次请求AppendChunk方法时,它将覆盖所有的现存信息。下次请求AppendChunk时,他将把数据添加到现存的参数数据中

Field

You can use the AppendChunk method for a Field object if the Attributes property is set to adFldLong.
如果Attributes属性被设置为adFldLong时,你可以对一个参数对象使用AppendChunk方法

First time you call the AppendChunk method on a Field object it overwrites any existing data. The next AppendChunk calls add data to existing data. If you append data to one field and then set or read the value of another field in the current record, ADO assumes that you are finished appending data to the first field. If you then call the AppendChunk method on the first field again, ADO will overwrite the existing data. Accessing fields in other Recordset objects that are not clones of the first Recordset object will not disrupt AppendChunk operations. There must be a current record when you call the AppendChunk method on a Field object.
当你在一个参数对象中第一次请求AppendChunk方法时,它将覆盖所有的现存信息。下次请求AppendChunk时,它将把数据添加到现存的参数数据中。如果你向一个字段中追加数据并设置或读取当前记录中的其它字段值时,ADO就会认为你已经完成了第一个字段的数据追加。如果此时你再次在第一个字段中请求AppendChunk方法时,ADO将会覆盖现存数据。如果访问其他Recordset[记录集]对象(该记录集对象是第一个记录集对象的克隆版本),那么它将会打断AppendChunk的操作。当你在一个字段对象中请求AppendChunk方法时,你必须位于当前记录中。

Note: This method does not work on Field objects of a Record object.
注意:这个方法并不对记录对象中的字段对象起作用。

Syntax
语法

objectname.AppendChunk data

Parameter参数 Description描述
data The data to append
指定需要追加的数据

评论 (0) All

登陆 | 还没注册?