Product Documentation

VCL/CLX Developers Guide

Previous Topic

Next Topic

Methods

Create

constructor Create(AOwner : TComponent);

The constructor for the TCtDataSet component.

Destroy

destructor Destroy();

The destructor for the TCtDataSet component. Do not call Destroy directly. The object has to be destroyed with the inherited (TObject) Free() method.

CreateBlobStream

function CreateBlobStream(Field : TField; Mode : TBlobStreamMode) : TStream;

Return a TBlobStream object for reading or writing the data in a specified blob field. Overrides the TBDEDataSet CreateBlobStream() method.

Call CreateBlobStream() to obtain a stream for reading data from or writing data to a binary large object (BLOB) field. The Field parameter must specify a TBlobField component from the Fields property array. The Mode parameter specifies whether the stream will be used for reading, writing, or updating the contents of the field.

Blob streams are created in a specific mode for a specific field on a specific record. Applications should create a new blob stream every time the record in the dataset changes rather than reusing an existing blob stream.

GetFieldData

function GetFieldData(Field : TField; Buffer : Pointer) : Boolean; override;

Retrieve the current value of a field into a buffer. Overrides the TDataSet GetFieldData() method.

TOCIndex