Methods for cDbUpdateHandler

Name

Type

Description

Data_File_Field

Procedure Set

Specify which table and field/column should be used to keep the current version of the database. It is automatically updated by the cDbUpdateVersion class pnVersionNumber.

"Set Data_File_Field to File_Field DbVersion.DatabaseVersion"

SetupConnectionString

Procedure

Called when the object is created. It searches the psDriver for a valid connection strings and sets the psConnectionString, which is used to login to the database. If no such connection has been setup prior to this object, you need manually to set the psConnectionString property.

Error_Report

Procedure

The standard error handler is replaced with a custom one while the update is doing its job. While the database is updated all errors are collected in the struct array paDbUpdateErrorArray property.

CreateSQLConnection

Procedure

Can be used to create a connection ID (of the cCLIHandle class) if not previously done before this object is created, or to override the Connection ID info that is specified in the driver .int file.

OpenErrorLogFile

Procedure

Opens the error log file if one was created, in Notepad.exe.

ReinitializeFramework

Procedure

Use it from your code to start processing the cDbUpdateVersion object's OnUpdate events again. Perhaps after psDataPath and psFileListPath of the cWorkspace object has been changed while running your program.


For all other methods see: cDbUpdateFunctionLibrary. All of those functions are available from a cDbUpdateHandler object.