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

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


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

The GetChunk method returns a variant that contains all or a part of the contents of a large text or binary data Field object.
GetChunk的作用是:返回所有的/一部分的文本(内容量较大的文本)内容或二进制数据的字段对象

This method can divide long values into small portions, so if the system memory is limited and can't deal with long values, this method can be used.
如果系统内存有限的话,可以通过这个方法将长值拆分为若干个小部分进行处理

When the GetChunk method is called, it starts to retrieve data from where the previous GetChunk call ended, as long as you stay on the same field in the current record.
当请求GetChunk方法时,它会紧接着先前GetChunk请求的结尾处开始提取数据,只要你仍然位于当前记录的相同字段中。

You can use the GetChunk method for a field if the Attributes property of a Field object is set to adFldLong.
如果一个字段对象的Attributes属性设置为adFldLong时,那么你可以对字段使用GetChunk方法。

Note: There has to be a current record when you use the GetChunk method on a Field object.
注意:你必须在当前记录的字段中使用GetChunk方法。

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

Syntax
语法

variable_name=field.GetChunk(size)

Parameter参数 Description描述
size A long value that is the number of bytes or characters to be returned.
指定需要返回的字节数和字符数

If size>remaining data, this method returns only the remaining data without empty spaces. If the field is empty, it returns a null value.
如果size[长度]>原数据,那么这个方法将返回不带空格的数据。如果字段为空,那么他将返回一个空值


评论 (0) All

登陆 | 还没注册?