当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO GetChunk 方法
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.
注意:这个方法并不对记录对象中的字段对象起作用。
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. |