Class TTUtility (unit TUtil)

Inherits from

TObject

TTUtility

Constructors


constructor Create;

TTUtility


Functions

procedure CheckTable;


procedure DefaultBackupNames;


destructor Destroy;


procedure DropErrorTable;


function ErrorString(ErrorCode: DBIResult): string;


procedure RepairTable;


procedure ClearTblDesc;

Retry

procedure DoCheckTable;

Retry

procedure DoRepairTable;


procedure FillTblDesc;


procedure RunTUtility(Action: TTUAction);


function VerifyTable: Cardinal;

Retry

procedure Check(Status: DBIResult);


procedure CheckBackupTable;


function CheckOpen(Status: DBIResult): Boolean;


function GetBackupTable: string;


function GetCheckErrorTable: string;


function GetErrorTable: string;


function GetKeyViolationTable: string;


function GetPassword: string;


function GetProblemTable: string;


function GetTableName: string;


function ProgressCallback(CBInfo: Pointer): CBRType;


procedure SetBackupTable(const Value: string);


procedure SetCheckErrorTable(const Value: string);


procedure SetErrorTable(const Value: string);


procedure SetKeyViolationTable(const Value: string);


procedure SetPassword(const Value: string);


procedure SetProblemTable(const Value: string);


procedure SetTableName(const Value: string);


procedure SetTabName(const TabName: string; const Dest: DBIPATH);


function ShowPasswordDialog: Boolean;


function TULastErrorMessage: string;


function VerifyFlag: Integer;


Properties

property CheckErrorTable : string


property CheckRepair : TCheckRepair


property ErrorTable : string


property KeyViolationTable : string


property Password : string


property ProblemTable : string


property ShowNoError : Boolean


property TableName : string


property VerifyOptions : TVerifyOptions


property BackupTable : string


Events

Variables

FBackupTable : DBIPATH;


FCheckErrorTable : DBIPATH;


FCheckRepair : TCheckRepair;


FErrorTable : DBIPATH;


FKeyViolationTable : DBIPATH;


FOptDataLen : Word;


FPassword : DBINAME;


FProblemTable : DBIPATH;


FSession : HTUses;


FShowNoError : Boolean;


FTableName : DBIPATH;


FTblDesc : CRTblDesc;


FVerifyOptions : TVerifyOptions;



Constructors


constructor Create;

TTUtility


Functions


procedure CheckTable;


procedure DefaultBackupNames;


destructor Destroy;


procedure DropErrorTable;


function ErrorString(ErrorCode: DBIResult): string;


procedure RepairTable;


procedure ClearTblDesc;

Retry


procedure DoCheckTable;

Retry


procedure DoRepairTable;


procedure FillTblDesc;


procedure RunTUtility(Action: TTUAction);


function VerifyTable: Cardinal;

Retry


procedure Check(Status: DBIResult);


procedure CheckBackupTable;


function CheckOpen(Status: DBIResult): Boolean;


function GetBackupTable: string;


function GetCheckErrorTable: string;


function GetErrorTable: string;


function GetKeyViolationTable: string;


function GetPassword: string;


function GetProblemTable: string;


function GetTableName: string;


function ProgressCallback(CBInfo: Pointer): CBRType;


procedure SetBackupTable(const Value: string);


procedure SetCheckErrorTable(const Value: string);


procedure SetErrorTable(const Value: string);


procedure SetKeyViolationTable(const Value: string);


procedure SetPassword(const Value: string);


procedure SetProblemTable(const Value: string);


procedure SetTableName(const Value: string);


procedure SetTabName(const TabName: string; const Dest: DBIPATH);


function ShowPasswordDialog: Boolean;


function TULastErrorMessage: string;


function VerifyFlag: Integer;


Properties


property CheckErrorTable : string


property CheckRepair : TCheckRepair


property ErrorTable : string


property KeyViolationTable : string


property Password : string


property ProblemTable : string


property ShowNoError : Boolean


property TableName : string


property VerifyOptions : TVerifyOptions


property BackupTable : string


Events


Variables


FBackupTable : DBIPATH;


FCheckErrorTable : DBIPATH;


FCheckRepair : TCheckRepair;


FErrorTable : DBIPATH;


FKeyViolationTable : DBIPATH;


FOptDataLen : Word;


FPassword : DBINAME;


FProblemTable : DBIPATH;


FSession : HTUses;


FShowNoError : Boolean;


FTableName : DBIPATH;


FTblDesc : CRTblDesc;


FVerifyOptions : TVerifyOptions;