Class TDBVReader (unit DBVRead)

Inherits from

TComponent

Constructors


constructor Create(AOwner: TComponent);

Public declarations

Destroy



Functions

destructor Destroy;


procedure SaveToFile(AFilename: TFileName);

SetFileName

function ConvertPointer(const pointer : string) : longint;

SetDataSource

procedure DataChange(Sender: TObject);


function GetDataField: string;

Triggered when data changes in DataSource.

function GetDataSource: TDataSource;

Returns data field name.

function GetFileName: TFileName;


procedure SetDataField(const newFieldName: string);

Returns linked data source.

procedure SetDataSource(newSource: TDataSource);

Assigns new field.

procedure SetFileName(newValue: TFileName);

GetFileName

procedure VLF2Stream(stream : tstream; const fptr : string);

SaveToFile

Properties

property DataField : string

Published properties and events

property DataSource : TDataSource


property FileName : TFileName


Events

Variables

FDBVFile : TFileStream;


FFieldDataLink : TFieldDataLink;


FFileName : TFileName;

Private declarations


Constructors


constructor Create(AOwner: TComponent);

Public declarations

Destroy


Functions


destructor Destroy;


procedure SaveToFile(AFilename: TFileName);

SetFileName


function ConvertPointer(const pointer : string) : longint;

SetDataSource


procedure DataChange(Sender: TObject);


function GetDataField: string;

Triggered when data changes in DataSource.

CDK: Update your control to reflect data change. For example, if this control were a descendant of TCalendar, you could use the following line: CalendarDate := FFieldDataLink.Field.AsDate; Other ways to look at data: AsBoolean AsDateTime AsFloat AsInteger AsString AsDate AsTime AsSmallInt AsWord AsCurrency AsBCD


function GetDataSource: TDataSource;

Returns data field name.

GetDataField


function GetFileName: TFileName;


procedure SetDataField(const newFieldName: string);

Returns linked data source.

GetDataSource


procedure SetDataSource(newSource: TDataSource);

Assigns new field.

SetDataField


procedure SetFileName(newValue: TFileName);

GetFileName


procedure VLF2Stream(stream : tstream; const fptr : string);

SaveToFile


Properties


property DataField : string

Published properties and events


property DataSource : TDataSource


property FileName : TFileName


Events


Variables


FDBVFile : TFileStream;


FFieldDataLink : TFieldDataLink;


FFileName : TFileName;

Private declarations