DBASEtransaction

Top  Previous  Next

Data bank operation take down.

The routine DBASEtransaction steers taking down the operations on a data bank. It is to be brought with it possibly changes in the data again on the state before the operation. If this routine is not called before, the changes are carried out permanently and immediately. If DBASEtransaction with the constants DBASE_TRANSACTION_BEGIN is called and changes are carried out, the changes temporarily obviously and only with the call of DBASEtransaction with the constants DBASE_TRANSACTION_COMMIT will become the temporary changes also constantly in the data bank assumed. The call with the constants DBASE_TRANSACTION_ROLLBACK is possible only if before the data were manipulated the call with the constants DBASE_TRANSACTION_BEGIN or DBASE_TRANSACTION_COMMIT has taken place.

Parametre

pipes (PIOPIPES) [IN]

The trading pipes gives the issue canal.

hndl (DBASEhndl *) [IN]

The trading hndl refers to information about the data bank name, data bank driver etc.

action (int) [IN]

With action one of the following constants will hand over. The constants steer the behaviour of the Protokollierens.

Result

(long int) [OUT]

By perfect implementation becomes TRUE zurückgeliefert, but FALSE

Declaration

#include "dbasedrv.h"

 

long int DLLENTRY DBASEtransaction (

PIOPIPES pipes,

DBASEhndl * hndl,

int action

);

Constants

DBASE_TRANSACTION_BEGIN

DBASE_TRANSACTION_COMMIT

DBASE_TRANSACTION_ROLLBACK