Pause method

Applies to
TIB_Transaction

Declaration
Function Pause(CommitChanges: boolean ): boolean;

Description
Call Pause( true ) to commit a transaction without notifying any datasets that the transaction has stopped. Pause( false ) to rollback a transaction without notifying any datasets that the transaction has stopped. While paused the Started property will return false, the IsPaused will return true but the TransactionState will report the status of the transaction that was in place prior to being paused.

Call Resume to have the transaction restored to its earlier state, including having all datasets that were opened refreshed.

This is essentially like the Refresh method split into two parts. The Pause that closes the transaction and the Resume that reopens and refreshes the transaction.

Any attempt to start/activate the transaction while paused will result in a "Transaction Paused" exception.

Returns true if the transaction was paused, otherwise false.