PRB: GetChunk & AppendChunk Not Allowed on Non-Memo Fields (113949)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q113949 SYMPTOMS
The GetChunk and AppendChunk methods allow a Visual Basic program to move
information in and out of Memo or Long Binary fields in a RecordSet. Using
these methods with other fields types may cause a general protection (GP)
fault. However, the more likely result is trappable error 3259 "Invalid
field data type."
CAUSE
The GetChunk, AppendChunk, and FieldSize methods are only applicable to
Memo or Long Binary type fields. If the field type is not checked before
using one of these methods, the inappropriate use of these methods may
cause a GP fault or a trappable error message.
RESOLUTION
To avoid this problem, check the field's Type property before using any of
these methods. These methods should only be used as they are intended to be
used on Memo or Long Binary type fields.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB113949 |
---|
|