CdbField::AppendChunk Method

Appends data from a string expression to a Memo or Long Binary (OLE Object) Field object in the Fields collection of a Recordset object.

Syntax

VOIDAppendChunk(LPVARIANT pv);

Parameters

Type Example Description
LPVARIANT pv A pointer to a variant whose value will be appended to the Fields collection.

Usage

#include <afxole.h>
#include <dbdao.h>

CdbRecordset      rs;
CdbField         fld;
COleVariant      vVal("abcdefghijklmnop", VT_BSTRT);
...                        // Initialize recordset, etc.
fld = rs.Fields[0];      // Get a field.
fld.AppendChunk(&vVal);    // Append the chunk.