Class TDbf

Unit

Declaration

type TDbf = class(TDataSet)

Description

This item has no description.

Hierarchy

Overview

Methods

Protected function AllocRecordBuffer: TRecordBuffer; override;
Protected procedure ClearCalcFields(Buffer: TRecordBuffer); override;
Protected procedure FreeRecordBuffer(var Buffer: TRecordBuffer); override;
Protected procedure GetBookmarkData(Buffer: TRecordBuffer; Data: Pointer); override;
Protected function GetBookmarkFlag(Buffer: TRecordBuffer): TBookmarkFlag; override;
Protected function GetRecord(Buffer: TRecordBuffer; GetMode: TGetMode; DoCheck: Boolean): TGetResult; override;
Protected function GetRecordSize: Word; override;
Protected procedure InternalAddRecord(Buffer: Pointer; AAppend: Boolean); override;
Protected procedure InternalClose; override;
Protected procedure InternalDelete; override;
Protected procedure InternalFirst; override;
Protected procedure InternalGotoBookmark(ABookmark: Pointer); override;
Protected procedure InternalHandleException; override;
Protected procedure InternalInitFieldDefs; override;
Protected procedure InternalInitRecord(Buffer: TRecordBuffer); override;
Protected procedure InternalLast; override;
Protected procedure InternalOpen; override;
Protected procedure InternalEdit; override;
Protected procedure InternalCancel; override;
Protected procedure InternalInsert; override;
Protected procedure InternalPost; override;
Protected procedure InternalSetToRecord(Buffer: TRecordBuffer); override;
Protected procedure InitFieldDefs; override;
Protected function IsCursorOpen: Boolean; override;
Protected procedure SetBookmarkFlag(Buffer: TRecordBuffer; Value: TBookmarkFlag); override;
Protected procedure SetBookmarkData(Buffer: TRecordBuffer; Data: Pointer); override;
Protected function GetDataSource: TDataSource; override;
Protected function GetRecordCount: Integer; override;
Protected function GetRecNo: Integer; override;
Protected function GetCanModify: Boolean; override;
Protected procedure SetRecNo(Value: Integer); override;
Protected procedure SetFiltered(Value: Boolean); override;
Protected procedure SetFilterText(const Value: String); override;
Protected function FindRecord(Restart, GoForward: Boolean): Boolean; override;
Protected function GetIndexFieldNames: string;
Protected procedure SetIndexFieldNames(const Value: string);
Protected procedure DoFilterRecord(var Acceptable: Boolean);
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure SetFieldData(Field: TField; Buffer: Pointer); override;
Public function GetFieldData(Field: TField; Buffer: Pointer): Boolean; override;
Public procedure Resync(Mode: TResyncMode); override;
Public function CreateBlobStream(Field: TField; Mode: TBlobStreamMode): TStream; override;
Public procedure Translate(Src, Dest: PChar; ToOem: Boolean); override;
Public function CompareBookmarks(Bookmark1, Bookmark2: TBookmark): Integer; override;
Public procedure CheckDbfFieldDefs(ADbfFieldDefs: TDbfFieldDefs);
Public procedure AddIndex(const AIndexName, AFields: String; Options: TIndexOptions);
Public procedure RegenerateIndexes;
Public procedure CancelRange;
Public procedure CheckMasterRange;
Public function PrepareKey(Buffer: Pointer; BufferType: TExpressionType): PChar;
Public function SearchKeyPChar(Key: PChar; SearchType: TSearchKeyType; KeyIsANSI: boolean ): Boolean;
Public procedure SetRangePChar(LowRange: PChar; HighRange: PChar; KeyIsANSI: boolean );
Public function GetCurrentBuffer: TRecordBuffer;
Public procedure ExtractKey(KeyBuffer: PChar);
Public procedure UpdateIndexDefs; override;
Public procedure GetFileNames(Strings: TStrings; Files: TDbfFileNames);
Public function GetFileNamesString(Files: TDbfFileNames ): string;
Public procedure GetIndexNames(Strings: TStrings);
Public procedure GetAllIndexFiles(Strings: TStrings);
Public procedure TryExclusive;
Public procedure EndExclusive;
Public function LockTable(const Wait: Boolean): Boolean;
Public procedure UnlockTable;
Public procedure OpenIndexFile(IndexFile: string);
Public procedure DeleteIndex(const AIndexName: string);
Public procedure CloseIndexFile(const AIndexName: string);
Public procedure RepageIndexFile(const AIndexFile: string);
Public procedure CompactIndexFile(const AIndexFile: string);
Public function IsDeleted: Boolean;
Public procedure Undelete;
Public procedure CreateTable;
Public procedure CreateTableEx(ADbfFieldDefs: TDbfFieldDefs);
Public procedure CopyFrom(DataSet: TDataSet; FileName: string; DateTimeAsString: Boolean; Level: Integer);
Public procedure RestructureTable(ADbfFieldDefs: TDbfFieldDefs; Pack: Boolean);
Public procedure PackTable;
Public procedure EmptyTable;
Public procedure Zap;
Public procedure InitFieldDefsFromFields;

Properties

Public property AbsolutePath: string read FAbsolutePath;
Public property DbfFieldDefs: TDbfFieldDefs read GetDbfFieldDefs;
Public property PhysicalRecNo: Integer read GetPhysicalRecNo write SetPhysicalRecNo;
Public property LanguageID: Byte read FLanguageID write SetLanguageID;
Public property LanguageStr: String read GetLanguageStr;
Public property CodePage: Cardinal read GetCodePage;
Public property ExactRecordCount: Integer read GetExactRecordCount;
Public property PhysicalRecordCount: Integer read GetPhysicalRecordCount;
Public property KeySize: Integer read GetKeySize;
Public property DbfFile: TDbfFile read FDbfFile;
Public property UserStream: TStream read FUserStream write FUserStream;
Public property DisableResyncOnPost: Boolean read FDisableResyncOnPost write FDisableResyncOnPost;
Published property DateTimeHandling: TDateTimeHandling read FDateTimeHandling write FDateTimeHandling default dtBDETimeStamp;
Published property Exclusive: Boolean read FExclusive write FExclusive default false;
Published property FilePath: string read FRelativePath write SetFilePath;
Published property FilePathFull: string read FAbsolutePath write SetFilePath stored false;
Published property Indexes: TDbfIndexDefs read FIndexDefs write SetDbfIndexDefs stored false;
Published property IndexDefs: TDbfIndexDefs read FIndexDefs write SetDbfIndexDefs;
Published property IndexFieldNames: string read GetIndexFieldNames write SetIndexFieldNames stored false;
Published property IndexName: string read GetIndexName write SetIndexName;
Published property MasterFields: string read GetMasterFields write SetMasterFields;
Published property MasterSource: TDataSource read GetDataSource write SetDataSource;
Published property OpenMode: TDbfOpenMode read FOpenMode write FOpenMode default omNormal;
Published property ReadOnly: Boolean read FReadOnly write FReadonly default false;
Published property ShowDeleted: Boolean read FShowDeleted write SetShowDeleted default false;
Published property Storage: TDbfStorage read FStorage write FStorage default stoFile;
Published property StoreDefs: Boolean read FStoreDefs write FStoreDefs default False;
Published property TableName: string read FTableName write SetTableName;
Published property TableLevel: Integer read FTableLevel write SetTableLevel;
Published property Version: string read GetVersion write SetVersion stored false;
Published property BeforeAutoCreate: TBeforeAutoCreateEvent read FBeforeAutoCreate write FBeforeAutoCreate;
Published property OnCompareRecord: TNotifyEvent read FOnCompareRecord write FOnCompareRecord;
Published property OnLanguageWarning: TLanguageWarningEvent read FOnLanguageWarning write FOnLanguageWarning;
Published property OnLocaleError: TDbfLocaleErrorEvent read FOnLocaleError write FOnLocaleError;
Published property OnIndexMissing: TDbfIndexMissingEvent read FOnIndexMissing write FOnIndexMissing;
Published property OnCopyDateTimeAsString: TConvertFieldEvent read FOnCopyDateTimeAsString write FOnCopyDateTimeAsString;
Published property OnTranslate: TTranslateEvent read FOnTranslate write FOnTranslate;
Published property Active;
Published property FieldDefs stored FieldDefsStored;
Published property Filter;
Published property Filtered;
Published property FilterOptions;
Published property BeforeOpen;
Published property AfterOpen;
Published property BeforeClose;
Published property AfterClose;
Published property BeforeInsert;
Published property AfterInsert;
Published property BeforeEdit;
Published property AfterEdit;
Published property BeforePost;
Published property AfterPost;
Published property BeforeCancel;
Published property AfterCancel;
Published property BeforeDelete;
Published property AfterDelete;
Published property BeforeScroll;
Published property AfterScroll;
Published property OnCalcFields;
Published property OnDeleteError;
Published property OnEditError;
Published property OnFilterRecord;
Published property OnNewRecord;
Published property OnPostError;

Description

Methods

Protected function AllocRecordBuffer: TRecordBuffer; override;

This item has no description.

Protected procedure ClearCalcFields(Buffer: TRecordBuffer); override;

This item has no description.

Protected procedure FreeRecordBuffer(var Buffer: TRecordBuffer); override;

This item has no description.

Protected procedure GetBookmarkData(Buffer: TRecordBuffer; Data: Pointer); override;

This item has no description.

Protected function GetBookmarkFlag(Buffer: TRecordBuffer): TBookmarkFlag; override;

This item has no description.

Protected function GetRecord(Buffer: TRecordBuffer; GetMode: TGetMode; DoCheck: Boolean): TGetResult; override;

This item has no description.

Protected function GetRecordSize: Word; override;

This item has no description.

Protected procedure InternalAddRecord(Buffer: Pointer; AAppend: Boolean); override;

This item has no description.

Protected procedure InternalClose; override;

This item has no description.

Protected procedure InternalDelete; override;

This item has no description.

Protected procedure InternalFirst; override;

This item has no description.

Protected procedure InternalGotoBookmark(ABookmark: Pointer); override;

This item has no description.

Protected procedure InternalHandleException; override;

This item has no description.

Protected procedure InternalInitFieldDefs; override;

This item has no description.

Protected procedure InternalInitRecord(Buffer: TRecordBuffer); override;

This item has no description.

Protected procedure InternalLast; override;

This item has no description.

Protected procedure InternalOpen; override;

This item has no description.

Protected procedure InternalEdit; override;

This item has no description.

Protected procedure InternalCancel; override;

This item has no description.

Protected procedure InternalInsert; override;

This item has no description.

Protected procedure InternalPost; override;

This item has no description.

Protected procedure InternalSetToRecord(Buffer: TRecordBuffer); override;

This item has no description.

Protected procedure InitFieldDefs; override;

This item has no description.

Protected function IsCursorOpen: Boolean; override;

This item has no description.

Protected procedure SetBookmarkFlag(Buffer: TRecordBuffer; Value: TBookmarkFlag); override;

This item has no description.

Protected procedure SetBookmarkData(Buffer: TRecordBuffer; Data: Pointer); override;

This item has no description.

Protected function GetDataSource: TDataSource; override;

This item has no description.

Protected function GetRecordCount: Integer; override;

This item has no description.

Protected function GetRecNo: Integer; override;

This item has no description.

Protected function GetCanModify: Boolean; override;

This item has no description.

Protected procedure SetRecNo(Value: Integer); override;

This item has no description.

Protected procedure SetFiltered(Value: Boolean); override;

This item has no description.

Protected procedure SetFilterText(const Value: String); override;

This item has no description.

Protected function FindRecord(Restart, GoForward: Boolean): Boolean; override;

This item has no description.

Protected function GetIndexFieldNames: string;

This item has no description.

Protected procedure SetIndexFieldNames(const Value: string);

This item has no description.

Protected procedure DoFilterRecord(var Acceptable: Boolean);

This item has no description.

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public procedure SetFieldData(Field: TField; Buffer: Pointer); override;

This item has no description.

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

This item has no description.

Public procedure Resync(Mode: TResyncMode); override;

This item has no description.

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

This item has no description.

Public procedure Translate(Src, Dest: PChar; ToOem: Boolean); override;

This item has no description.

Public function CompareBookmarks(Bookmark1, Bookmark2: TBookmark): Integer; override;

This item has no description.

Public procedure CheckDbfFieldDefs(ADbfFieldDefs: TDbfFieldDefs);

This item has no description.

Public procedure AddIndex(const AIndexName, AFields: String; Options: TIndexOptions);

This item has no description.

Public procedure RegenerateIndexes;

This item has no description.

Public procedure CancelRange;

This item has no description.

Public procedure CheckMasterRange;

This item has no description.

Public function PrepareKey(Buffer: Pointer; BufferType: TExpressionType): PChar;

This item has no description.

Public function SearchKeyPChar(Key: PChar; SearchType: TSearchKeyType; KeyIsANSI: boolean ): Boolean;

This item has no description.

Public procedure SetRangePChar(LowRange: PChar; HighRange: PChar; KeyIsANSI: boolean );

This item has no description.

Public function GetCurrentBuffer: TRecordBuffer;

This item has no description.

Public procedure ExtractKey(KeyBuffer: PChar);

This item has no description.

Public procedure UpdateIndexDefs; override;

This item has no description.

Public procedure GetFileNames(Strings: TStrings; Files: TDbfFileNames);

This item has no description.

Public function GetFileNamesString(Files: TDbfFileNames ): string;

This item has no description.

Public procedure GetIndexNames(Strings: TStrings);

This item has no description.

Public procedure GetAllIndexFiles(Strings: TStrings);

This item has no description.

Public procedure TryExclusive;

This item has no description.

Public procedure EndExclusive;

This item has no description.

Public function LockTable(const Wait: Boolean): Boolean;

This item has no description.

Public procedure UnlockTable;

This item has no description.

Public procedure OpenIndexFile(IndexFile: string);

This item has no description.

Public procedure DeleteIndex(const AIndexName: string);

This item has no description.

Public procedure CloseIndexFile(const AIndexName: string);

This item has no description.

Public procedure RepageIndexFile(const AIndexFile: string);

This item has no description.

Public procedure CompactIndexFile(const AIndexFile: string);

This item has no description.

Public function IsDeleted: Boolean;

This item has no description.

Public procedure Undelete;

This item has no description.

Public procedure CreateTable;

This item has no description.

Public procedure CreateTableEx(ADbfFieldDefs: TDbfFieldDefs);

This item has no description.

Public procedure CopyFrom(DataSet: TDataSet; FileName: string; DateTimeAsString: Boolean; Level: Integer);

This item has no description.

Public procedure RestructureTable(ADbfFieldDefs: TDbfFieldDefs; Pack: Boolean);

This item has no description.

Public procedure PackTable;

This item has no description.

Public procedure EmptyTable;

This item has no description.

Public procedure Zap;

This item has no description.

Public procedure InitFieldDefsFromFields;

This item has no description.

Properties

Public property AbsolutePath: string read FAbsolutePath;

This item has no description.

Public property DbfFieldDefs: TDbfFieldDefs read GetDbfFieldDefs;

This item has no description.

Public property PhysicalRecNo: Integer read GetPhysicalRecNo write SetPhysicalRecNo;

This item has no description.

Public property LanguageID: Byte read FLanguageID write SetLanguageID;

This item has no description.

Public property LanguageStr: String read GetLanguageStr;

This item has no description.

Public property CodePage: Cardinal read GetCodePage;

This item has no description.

Public property ExactRecordCount: Integer read GetExactRecordCount;

This item has no description.

Public property PhysicalRecordCount: Integer read GetPhysicalRecordCount;

This item has no description.

Public property KeySize: Integer read GetKeySize;

This item has no description.

Public property DbfFile: TDbfFile read FDbfFile;

This item has no description.

Public property UserStream: TStream read FUserStream write FUserStream;

This item has no description.

Public property DisableResyncOnPost: Boolean read FDisableResyncOnPost write FDisableResyncOnPost;

This item has no description.

Published property DateTimeHandling: TDateTimeHandling read FDateTimeHandling write FDateTimeHandling default dtBDETimeStamp;

This item has no description.

Published property Exclusive: Boolean read FExclusive write FExclusive default false;

This item has no description.

Published property FilePath: string read FRelativePath write SetFilePath;

This item has no description.

Published property FilePathFull: string read FAbsolutePath write SetFilePath stored false;

This item has no description.

Published property Indexes: TDbfIndexDefs read FIndexDefs write SetDbfIndexDefs stored false;

This item has no description.

Published property IndexDefs: TDbfIndexDefs read FIndexDefs write SetDbfIndexDefs;

This item has no description.

Published property IndexFieldNames: string read GetIndexFieldNames write SetIndexFieldNames stored false;

This item has no description.

Published property IndexName: string read GetIndexName write SetIndexName;

This item has no description.

Published property MasterFields: string read GetMasterFields write SetMasterFields;

This item has no description.

Published property MasterSource: TDataSource read GetDataSource write SetDataSource;

This item has no description.

Published property OpenMode: TDbfOpenMode read FOpenMode write FOpenMode default omNormal;

This item has no description.

Published property ReadOnly: Boolean read FReadOnly write FReadonly default false;

This item has no description.

Published property ShowDeleted: Boolean read FShowDeleted write SetShowDeleted default false;

This item has no description.

Published property Storage: TDbfStorage read FStorage write FStorage default stoFile;

This item has no description.

Published property StoreDefs: Boolean read FStoreDefs write FStoreDefs default False;

This item has no description.

Published property TableName: string read FTableName write SetTableName;

This item has no description.

Published property TableLevel: Integer read FTableLevel write SetTableLevel;

This item has no description.

Published property Version: string read GetVersion write SetVersion stored false;

This item has no description.

Published property BeforeAutoCreate: TBeforeAutoCreateEvent read FBeforeAutoCreate write FBeforeAutoCreate;

This item has no description.

Published property OnCompareRecord: TNotifyEvent read FOnCompareRecord write FOnCompareRecord;

This item has no description.

Published property OnLanguageWarning: TLanguageWarningEvent read FOnLanguageWarning write FOnLanguageWarning;

This item has no description.

Published property OnLocaleError: TDbfLocaleErrorEvent read FOnLocaleError write FOnLocaleError;

This item has no description.

Published property OnIndexMissing: TDbfIndexMissingEvent read FOnIndexMissing write FOnIndexMissing;

This item has no description.

Published property OnCopyDateTimeAsString: TConvertFieldEvent read FOnCopyDateTimeAsString write FOnCopyDateTimeAsString;

This item has no description.

Published property OnTranslate: TTranslateEvent read FOnTranslate write FOnTranslate;

This item has no description.

Published property Active;

This item has no description.

Published property FieldDefs stored FieldDefsStored;

This item has no description.

Published property Filter;

This item has no description.

Published property Filtered;

This item has no description.

Published property FilterOptions;

This item has no description.

Published property BeforeOpen;

This item has no description.

Published property AfterOpen;

This item has no description.

Published property BeforeClose;

This item has no description.

Published property AfterClose;

This item has no description.

Published property BeforeInsert;

This item has no description.

Published property AfterInsert;

This item has no description.

Published property BeforeEdit;

This item has no description.

Published property AfterEdit;

This item has no description.

Published property BeforePost;

This item has no description.

Published property AfterPost;

This item has no description.

Published property BeforeCancel;

This item has no description.

Published property AfterCancel;

This item has no description.

Published property BeforeDelete;

This item has no description.

Published property AfterDelete;

This item has no description.

Published property BeforeScroll;

This item has no description.

Published property AfterScroll;

This item has no description.

Published property OnCalcFields;

This item has no description.

Published property OnDeleteError;

This item has no description.

Published property OnEditError;

This item has no description.

Published property OnFilterRecord;

This item has no description.

Published property OnNewRecord;

This item has no description.

Published property OnPostError;

This item has no description.


Generated by PasDoc 0.17.0.snapshot.